File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,20 @@ jobs:
30
30
username : ${{ secrets.DOCKER_USERNAME }}
31
31
password : ${{ secrets.DOCKER_API_KEY }}
32
32
33
+ # Make it possible to use different values for the version (used for git
34
+ # checkout) and the image tag (used for the docker image tag).
33
35
- name : Set env
34
- run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
36
+ run : |
37
+ echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
38
+ echo "IMAGE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
35
39
36
40
- name : Build and push default image
37
41
id : docker_build
38
42
uses :
lightninglabs/gh-actions/[email protected]
39
43
with :
40
44
push : true
41
45
platforms : linux/amd64,linux/arm64
42
- tags : " ${{ env.DOCKER_ORG }}/${{ env.DOCKER_REPO }}:${{ env.RELEASE_VERSION }}"
46
+ tags : " ${{ env.DOCKER_ORG }}/${{ env.DOCKER_REPO }}:${{ env.IMAGE_TAG }}"
43
47
build-args : checkout=${{ env.RELEASE_VERSION }}
44
48
45
49
- name : Build and push image with /lit path
48
52
with :
49
53
push : true
50
54
platforms : linux/amd64,linux/arm64
51
- tags : " ${{ env.DOCKER_ORG }}/${{ env.DOCKER_REPO }}:${{ env.RELEASE_VERSION }}-path-prefix"
55
+ tags : " ${{ env.DOCKER_ORG }}/${{ env.DOCKER_REPO }}:${{ env.IMAGE_TAG }}-path-prefix"
52
56
build-args : |
53
57
checkout=${{ env.RELEASE_VERSION }}
54
58
public_url=/lit
You can’t perform that action at this time.
0 commit comments