File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments