Skip to content

Commit 64e1191

Browse files
authored
Merge pull request #60 from codewars/ensure-no-v
2 parents 0316daa + 12ee798 commit 64e1191

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish-image.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v2
2121

22+
- name: Get image tag
23+
run: |
24+
# Remove `v` prefix if given
25+
tag=${{ github.event.inputs.tag }}
26+
echo "IMAGE_TAG=${tag#v}" >> $GITHUB_ENV
27+
shell: bash
28+
2229
- name: Set up Docker Buildx
2330
uses: docker/setup-buildx-action@v1
2431

@@ -36,6 +43,6 @@ jobs:
3643
push: true
3744
tags: |
3845
ghcr.io/${{ github.repository_owner }}/lambda-calculus:latest
39-
ghcr.io/${{ github.repository_owner }}/lambda-calculus:${{ github.event.inputs.tag }}
46+
ghcr.io/${{ github.repository_owner }}/lambda-calculus:${{ env.IMAGE_TAG }}
4047
cache-from: type=gha
4148
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)