Skip to content

Commit ab2274f

Browse files
committed
feat: baking version into CI
1 parent b2fbbc8 commit ab2274f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,16 @@ jobs:
173173
run: |
174174
IMAGE=docker.kmanning.ie:5000/intercom-python-client
175175
APP_VERSION=$(cat VERSION)
176+
DOCKER_TAG=$(echo "$APP_VERSION" | tr '+' '-')
176177
177178
docker build \
178179
--build-arg APP_VERSION="$APP_VERSION" \
179180
-f Dockerfile \
180181
-t "$IMAGE:latest" \
181182
-t "$IMAGE:${{ github.sha }}" \
182-
-t "$IMAGE:$APP_VERSION" \
183+
-t "$IMAGE:$DOCKER_TAG" \
183184
.
184185
185186
docker push "$IMAGE:latest"
186187
docker push "$IMAGE:${{ github.sha }}"
187-
docker push "$IMAGE:$APP_VERSION"
188+
docker push "$IMAGE:$DOCKER_TAG"

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.0+alpha-master-22
1+
0.0.0+alpha-master-23

0 commit comments

Comments
 (0)