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