Skip to content

Commit 1177287

Browse files
committed
github: expect docker tag name to contain docker/
To distinguish between tags we push for a binary release (e.g. a new version of lndinit itself) and a tag that we push just for bundling lndinit with a newly released lnd version, we expect the docker tag to start with docker/, and consequently only build images for tags with that prefix.
1 parent 8c31a7c commit 1177287

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Docker image build
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- 'docker/v*'
77

88
defaults:
99
run:
@@ -30,12 +30,12 @@ jobs:
3030
password: ${{ secrets.DOCKER_API_KEY }}
3131

3232
- name: Set env for RELEASE_VERSION
33-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
33+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/docker}" >> $GITHUB_ENV
3434

35-
# We will push tags with the format v0.x.y-lnd-v0.aa.bb-beta where x and y
36-
# are lndinit's version and aa and bb are lnd's version. This variable
37-
# LND_VERSION extracts everything after v0.x.y-lnd- so we know which base
38-
# image we need to build on top of.
35+
# We will push tags with the format docker/v0.x.y-lnd-v0.aa.bb-beta where
36+
# x and y are lndinit's version and aa and bb are lnd's version. This
37+
# variable LND_VERSION extracts everything after v0.x.y-lnd- so we know
38+
# which base image we need to build on top of.
3939
- name: Set env for LND_VERSION
4040
run: echo "LND_VERSION=${RELEASE_VERSION##v*\.*\.*-lnd-}" >> $GITHUB_ENV
4141

0 commit comments

Comments
 (0)