docker / build-push-action

GitHub Action to build and push Docker images with Buildx
https://github.com/marketplace/actions/build-and-push-docker-images
Apache License 2.0
4.11k stars 527 forks source link

is there a push only action? #1016

Closed nektro closed 7 months ago

nektro commented 7 months ago

Description

didn't see a bool in the config to disable building. i'm doing the building myself in a different step but need an action to push local_tag to user/repo:latest.

crazy-max commented 7 months ago

No but you can just use the push command as shown in https://github.com/docker/build-push-action/issues/538#issuecomment-1692111198

      - name: Tag and push
        run: |
          docker tag local_tag user/repo:latest
          docker push user/repo:latest