Skip to content

Commit 700ac9b

Browse files
mrrobot47Copilot
andauthored
Update .github/workflows/build.yaml
Co-authored-by: Copilot <[email protected]>
1 parent 9526eda commit 700ac9b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
2121
- name: Login to GitHub Container Registry
2222
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
23+
- name: Set Lowercase Image Tag
24+
id: prep
25+
run: |
26+
IMAGE_TAG="ghcr.io/${{ github.repository }}:${{ github.ref_name }}"
27+
IMAGE_TAG_LOWER=$(echo "$IMAGE_TAG" | tr '[:upper:]' '[:lower:]')
28+
echo "IMAGE_TAG_LOWER=$IMAGE_TAG_LOWER" >> $GITHUB_ENV
2329
- name: Build and Push Multi-Arch Docker Image
2430
run: |
25-
docker buildx build --platform linux/amd64,linux/arm64 -t $(echo 'ghcr.io/${{ github.repository }}:${{ github.ref_name }}' | tr '[:upper:]' '[:lower:]') --push .
31+
docker buildx build --platform linux/amd64,linux/arm64 -t "$IMAGE_TAG_LOWER" --push .

0 commit comments

Comments
 (0)