We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad43140 commit ac095a6Copy full SHA for ac095a6
.github/workflows/publish.yml
@@ -22,10 +22,13 @@ jobs:
22
23
- name: Run build
24
run: |
25
+ IMAGE_NAME=ghcr.io/$(echo "${{ github.repository }}" | tr '[A-Z]' '[a-z]' )
26
+ # Strip git ref prefix from version
27
+ VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
28
docker build . \
29
--build-arg FETCHER_IMAGE_VERSION=${FETCHER_IMAGE_VERSION} \
30
--build-arg BASE_IMAGE_VERSION=${BASE_IMAGE_VERSION} \
- --file Dockerfile --tag $IMAGE_NAME
31
+ --file Dockerfile --tag $IMAGE_NAME:$VERSION
32
33
- name: Log into GitHub Container Registry
34
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
0 commit comments