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.
2 parents 0316daa + 12ee798 commit 64e1191Copy full SHA for 64e1191
.github/workflows/publish-image.yml
@@ -19,6 +19,13 @@ jobs:
19
steps:
20
- uses: actions/checkout@v2
21
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
+
29
- name: Set up Docker Buildx
30
uses: docker/setup-buildx-action@v1
31
@@ -36,6 +43,6 @@ jobs:
36
43
push: true
37
44
tags: |
38
45
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 }}
40
47
cache-from: type=gha
41
48
cache-to: type=gha,mode=max
0 commit comments