Skip to content

Commit ac095a6

Browse files
Fix CI
1 parent ad43140 commit ac095a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ jobs:
2222

2323
- name: Run build
2424
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,')
2528
docker build . \
2629
--build-arg FETCHER_IMAGE_VERSION=${FETCHER_IMAGE_VERSION} \
2730
--build-arg BASE_IMAGE_VERSION=${BASE_IMAGE_VERSION} \
28-
--file Dockerfile --tag $IMAGE_NAME
31+
--file Dockerfile --tag $IMAGE_NAME:$VERSION
2932
3033
- name: Log into GitHub Container Registry
3134
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

0 commit comments

Comments
 (0)