diff --git a/.github/workflows/docker-image-dev.yml b/.github/workflows/docker-image-dev.yml new file mode 100644 index 0000000..5251de0 --- /dev/null +++ b/.github/workflows/docker-image-dev.yml @@ -0,0 +1,52 @@ +name: Docker Image CI - Dev + +on: + schedule: + - cron: "0 10 * * *" + push: + branches: + - "master" + pull_request: + branches: + - "master" + +jobs: + build: + runs-on: ubuntu-latest + permissions: + packages: write + steps: + - uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Docker Setup Buildx + uses: docker/setup-buildx-action@v3 + with: + platforms: linux/arm/v7,linux/arm64/v8 + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: https://ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + # list of Docker images to use as base name for tags + images: | + ghcr.io/${{github.repository}} + # generate Docker tags based on the following events/attributes + tags: | + # set dev tag for default branch + type=raw,value=dev,enable={{is_default_branch}} + type=schedule,pattern=nightly + type=sha + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/arm/v7,linux/arm64/v8 + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 63023aa..b4d53ed 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,16 +1,9 @@ name: Docker Image CI on: - schedule: - - cron: "0 10 * * *" push: - branches: - - "master" tags: - "v*.*.*" - pull_request: - branches: - - "master" jobs: build: