mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-25 10:01:02 -05:00
Separate docker login
and docker push
https://github.com/pypa/gh-action-pypi-publish/pull/230#discussion_r1578694138
This commit is contained in:
parent
e453f8c630
commit
0d8d5059c8
1 changed files with 4 additions and 1 deletions
|
@ -22,9 +22,12 @@ jobs:
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
--cache-from $IMAGE \
|
--cache-from $IMAGE \
|
||||||
--tag $IMAGE
|
--tag $IMAGE
|
||||||
- name: Push Docker image to GHCR
|
- name: Log in to GHCR
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
echo ${{ secrets.GITHUB_TOKEN }} |
|
echo ${{ secrets.GITHUB_TOKEN }} |
|
||||||
docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
|
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
|
docker push $IMAGE
|
||||||
|
|
Loading…
Reference in a new issue