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 6ee4669 commit 9a31f0bCopy full SHA for 9a31f0b
.github/workflows/ci.yaml
@@ -28,11 +28,14 @@ jobs:
28
- name: Log into registry
29
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
30
run: |
31
- if [ -z "${{ secrets.GHCR_PAT }}" ]; then
32
- echo "GHCR_PAT is not set or unavailable in this context"
+ TOKEN="$GHCR_PAT"
+ if [ -z "$TOKEN" ]; then
33
+ echo "GHCR_PAT is not available"
34
exit 1
35
fi
- echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
36
+ echo "$TOKEN" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
37
+ env:
38
+ GHCR_PAT: ${{ secrets.GHCR_PAT }}
39
40
- name: Push image
41
0 commit comments