Skip to content

Commit

Permalink
Separate docker login and docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
br3ndonland committed Apr 26, 2024
1 parent 38f8bee commit bb0315f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ jobs:
--build-arg BUILDKIT_INLINE_CACHE=1 \
--cache-from $IMAGE \
--tag $IMAGE
- name: Push Docker image to GHCR
- name: Log in to GHCR
if: github.event_name != 'pull_request'
run: |
echo ${{ secrets.GITHUB_TOKEN }} |
docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Push Docker image to GHCR
if: github.event_name != 'pull_request'
run: |
docker push $IMAGE

0 comments on commit bb0315f

Please sign in to comment.