1
0
mirror of https://github.com/pypa/gh-action-pypi-publish synced 2024-11-30 21:22:28 +08:00

Separate docker login and docker push

https://github.com/pypa/gh-action-pypi-publish/pull/230#discussion_r1578694138
This commit is contained in:
Brendon Smith 2024-04-26 19:08:30 -04:00
parent e098680f1b
commit 27ce557201
No known key found for this signature in database

View File

@ -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