Skip to content

Commit 3384fad

Browse files
br3ndonlandwebknjaz
authored andcommitted
Separate docker login and docker push
pypa#230 (comment)
1 parent 769f499 commit 3384fad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-and-push-docker-image.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ jobs:
2222
--build-arg BUILDKIT_INLINE_CACHE=1 \
2323
--cache-from $IMAGE \
2424
--tag $IMAGE
25-
- name: Push Docker image to GHCR
25+
- name: Log in to GHCR
2626
if: github.event_name != 'pull_request'
2727
run: |
2828
echo ${{ secrets.GITHUB_TOKEN }} |
2929
docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
30+
- name: Push Docker image to GHCR
31+
if: github.event_name != 'pull_request'
32+
run: |
3033
docker push $IMAGE

0 commit comments

Comments
 (0)