The first public release of Fabled Minstrel #158
@@ -1002,7 +1002,9 @@ jobs:
|
||||
shell: bash
|
||||
env:
|
||||
VERSION: ${{ steps.name.outputs.version }}
|
||||
GHCR_USER: ${{ vars.GHCR_USER }}
|
||||
# GHCR_USER may be set as an Actions variable or as a secret; a
|
||||
# dispatch on 2026-11-29 found the variable context empty.
|
||||
GHCR_USER: ${{ vars.GHCR_USER || secrets.GHCR_USER }}
|
||||
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
@@ -1010,7 +1012,7 @@ jobs:
|
||||
echo "::notice::dry run: ${PUBLIC_IMAGE}:${VERSION} and :latest built, nothing pushed"
|
||||
exit 0
|
||||
fi
|
||||
if [ -z "${GHCR_USER}" ]; then echo "::error::the Actions variable GHCR_USER is empty"; exit 1; fi
|
||||
if [ -z "${GHCR_USER}" ]; then echo "::error::GHCR_USER is empty: set it as an Actions variable or secret"; exit 1; fi
|
||||
if [ -z "${GHCR_TOKEN}" ]; then echo "::error::the Actions secret GHCR_TOKEN is empty"; exit 1; fi
|
||||
printf '%s' "${GHCR_TOKEN}" | docker login ghcr.io -u "${GHCR_USER}" --password-stdin
|
||||
if docker manifest inspect "${PUBLIC_IMAGE}:${VERSION}" > /dev/null 2>&1; then
|
||||
|
||||
Reference in New Issue
Block a user