Skip to content

remove unnecessary sleeps #14

remove unnecessary sleeps

remove unnecessary sleeps #14

name: Build and Publish
on:
push:
branches:
- main
tags:
- "*"
pull_request:
jobs:
build-and-publish-docker-image:
name: Build docker images and publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build omnilock image and publish as specific tag
uses: docker/build-push-action@v5
if: ${{ github.ref_type == 'tag' }}
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64
context: ./
tags: "ghcr.io/${{ github.repository }}:${{ github.ref_name }}"
push: true
- name: Build omnilock image and publish as latest
uses: docker/build-push-action@v4
if: ${{ github.ref_type != 'tag' }}
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64
context: ./
tags: "ghcr.io/${{ github.repository }}:latest"
push: ${{ github.ref == 'refs/heads/main' }}