Skip to content

Commit 95c13b1

Browse files
committed
Lowercase tag
1 parent 30e7d6b commit 95c13b1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,18 @@ jobs:
5151
- name: Test cli works in cached runtime image
5252
run: docker run --rm tag_for_testing uvx pycowsay 'hello ubuntu-devcontainer!'
5353

54+
# image names must be all lower case, meta does this for us to make tags
55+
# but can't get the image name back out
56+
- name: Generate image repo name
57+
run: echo REGISTRY_IMAGE=ghcr.io/$(tr '[:upper:]' '[:lower:]' <<< "${{ github.repository }}") >> $GITHUB_ENV
58+
5459
- name: Build and push by digest
5560
id: build
5661
# if: github.ref_type == 'tag'
5762
uses: docker/build-push-action@v6
5863
with:
5964
labels: ${{ steps.meta.outputs.labels }}
60-
tags: ghcr.io/${{ github.repository }}
65+
tags: ${{ env.REGISTRY_IMAGE }}
6166
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
6267

6368
- name: Export digest

0 commit comments

Comments
 (0)