We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b2180b commit 6ee4669Copy full SHA for 6ee4669
.github/workflows/ci.yaml
@@ -27,7 +27,12 @@ jobs:
27
28
- name: Log into registry
29
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
30
- run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
+ run: |
31
+ if [ -z "${{ secrets.GHCR_PAT }}" ]; then
32
+ echo "GHCR_PAT is not set or unavailable in this context"
33
+ exit 1
34
+ fi
35
+ echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
36
37
- name: Push image
38
@@ -45,4 +50,4 @@ jobs:
45
50
echo IMAGE_ID=$IMAGE_ID
46
51
echo VERSION=$VERSION
47
52
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
48
- docker push $IMAGE_ID:$VERSION
53
+ docker push $IMAGE_ID:$VERSION
0 commit comments