Skip to content

Commit 1ef9ac3

Browse files
authored
Merge pull request #38 from LockedThread/development
forced image name to be lower case for manifest creation
2 parents 08f5561 + 6f0cd3e commit 1ef9ac3

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/release.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,23 @@ jobs:
7676
username: ${{ github.actor }}
7777
password: ${{ secrets.GITHUB_TOKEN }}
7878

79-
# Create a multi-arch manifest for the "latest" tag
8079
- name: Create multi-arch manifest for latest
8180
run: |
82-
docker manifest create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
83-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-amd64 \
84-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-arm64
85-
docker manifest push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
81+
# Convert IMAGE_NAME to lowercase
82+
LOWER_IMAGE_NAME=$(echo "${IMAGE_NAME}" | tr '[:upper:]' '[:lower:]')
83+
docker manifest create $REGISTRY/${LOWER_IMAGE_NAME}:latest \
84+
$REGISTRY/${LOWER_IMAGE_NAME}:latest-amd64 \
85+
$REGISTRY/${LOWER_IMAGE_NAME}:latest-arm64
86+
docker manifest push $REGISTRY/${LOWER_IMAGE_NAME}:latest
8687
87-
# Create a multi-arch manifest for the version tag
8888
- name: Create multi-arch manifest for version tag
8989
run: |
90-
docker manifest create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.version }} \
91-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.version }}-amd64 \
92-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.version }}-arm64
93-
docker manifest push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.version }}
90+
# Convert IMAGE_NAME to lowercase
91+
LOWER_IMAGE_NAME=$(echo "${IMAGE_NAME}" | tr '[:upper:]' '[:lower:]')
92+
docker manifest create $REGISTRY/${LOWER_IMAGE_NAME}:${{ inputs.version }} \
93+
$REGISTRY/${LOWER_IMAGE_NAME}:${{ inputs.version }}-amd64 \
94+
$REGISTRY/${LOWER_IMAGE_NAME}:${{ inputs.version }}-arm64
95+
docker manifest push $REGISTRY/${LOWER_IMAGE_NAME}:${{ inputs.version }}
9496
9597
release:
9698
needs: manifest

0 commit comments

Comments
 (0)