From 805675b2ea40d6edfbd0d26c08b23199f2c1e81f Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Wed, 4 Jan 2023 13:59:55 -0800 Subject: [PATCH] branch-build-push --- ...build-push.yaml => branch-build-push.yaml} | 24 ------------------- 1 file changed, 24 deletions(-) rename .github/workflows/{build-push.yaml => branch-build-push.yaml} (52%) diff --git a/.github/workflows/build-push.yaml b/.github/workflows/branch-build-push.yaml similarity index 52% rename from .github/workflows/build-push.yaml rename to .github/workflows/branch-build-push.yaml index e0f8717..c718c08 100644 --- a/.github/workflows/build-push.yaml +++ b/.github/workflows/branch-build-push.yaml @@ -3,7 +3,6 @@ name: Docker Hub CI on: push: branches: [ "main" ] - tags: [ "v*" ] jobs: build: @@ -16,18 +15,6 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v2 - - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} - tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - flavor: | - latest=auto - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -44,16 +31,5 @@ jobs: file: ./app/Dockerfile context: ./app push: true - if: ${{ github.event.release.tag_name }} == '' tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest platforms: linux/amd64,linux/arm64 - - - name: Tagged build and push - uses: docker/build-push-action@v3 - with: - file: ./app/Dockerfile - context: ./app - push: true - if: ${{ github.event.release.tag_name }} != '' - tags: ${{ steps.meta.outputs.tags }} - platforms: linux/amd64,linux/arm64