From 2916b7ce2a410c8bfc2da9a85bab8bcfbb3ae850 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Wed, 4 Jan 2023 19:58:48 -0800 Subject: [PATCH] changing to branch push build --- .../{build-push.yaml => branch-build-push.yaml} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{build-push.yaml => branch-build-push.yaml} (81%) diff --git a/.github/workflows/build-push.yaml b/.github/workflows/branch-build-push.yaml similarity index 81% rename from .github/workflows/build-push.yaml rename to .github/workflows/branch-build-push.yaml index a125e27..7a7ac65 100644 --- a/.github/workflows/build-push.yaml +++ b/.github/workflows/branch-build-push.yaml @@ -1,4 +1,4 @@ -name: Docker Hub CI +name: Branch Docker Hub CI on: push: @@ -25,12 +25,12 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push + name: Untagged build and push uses: docker/build-push-action@v3 with: - push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/crud-app:latest - platforms: linux/amd64,linux/arm64 file: ./app/Dockerfile context: ./app + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest + platforms: linux/amd64,linux/arm64