mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-18 01:44:38 +08:00
fix: convert branch name for docker manifest tags
This commit is contained in:
4
.github/workflows/docker-build.yml
vendored
4
.github/workflows/docker-build.yml
vendored
@@ -153,12 +153,14 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
IMAGE_BASE: ${{ needs.prepare.outputs.image_base }}
|
IMAGE_BASE: ${{ needs.prepare.outputs.image_base }}
|
||||||
run: |
|
run: |
|
||||||
REF_NAME="${{ github.ref_name }}"
|
# Convert branch name: release/stable -> release-stable (matching Docker metadata action)
|
||||||
|
REF_NAME=$(echo "${{ github.ref_name }}" | sed 's/\//-/g')
|
||||||
GHCR_IMAGE="${{ env.REGISTRY_GHCR }}/${IMAGE_BASE}/nofx-${{ matrix.image_suffix }}"
|
GHCR_IMAGE="${{ env.REGISTRY_GHCR }}/${IMAGE_BASE}/nofx-${{ matrix.image_suffix }}"
|
||||||
|
|
||||||
echo "📦 Creating manifest for ${{ matrix.image_suffix }}"
|
echo "📦 Creating manifest for ${{ matrix.image_suffix }}"
|
||||||
echo "Repository: ${IMAGE_BASE}"
|
echo "Repository: ${IMAGE_BASE}"
|
||||||
echo "Image: ${GHCR_IMAGE}"
|
echo "Image: ${GHCR_IMAGE}"
|
||||||
|
echo "Ref name: ${REF_NAME}"
|
||||||
|
|
||||||
docker buildx imagetools create -t "${GHCR_IMAGE}:${REF_NAME}" \
|
docker buildx imagetools create -t "${GHCR_IMAGE}:${REF_NAME}" \
|
||||||
"${GHCR_IMAGE}:${REF_NAME}-amd64" \
|
"${GHCR_IMAGE}:${REF_NAME}-amd64" \
|
||||||
|
|||||||
Reference in New Issue
Block a user