Skip to content

Commit 2cb3aad

Browse files
committed
Update build.yaml
1 parent 1819535 commit 2cb3aad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ jobs:
2323
registry: ${{ vars.WS_DOCKER_REGISTRY }}
2424
username: ${{ vars.DOCKERHUB_USERNAME }}
2525
password: ${{ secrets.DOCKERHUB_TOKEN }}
26-
27-
- name: Set commit SHA as code version
28-
run: echo "CODE_VERSION=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
2926

3027
- name: "Build Changelog"
3128
id: build_changelog
@@ -40,7 +37,8 @@ jobs:
4037
env:
4138
ENV: ${{ vars.ENV }}
4239
WS_DOCKER_REGISTRY: ${{ vars.WS_DOCKER_REGISTRY }}
43-
40+
CODE_VERSION: ${{ github.sha }}
41+
4442
# passwords
4543
WS_API_DB_PASS: ${{ secrets.WS_API_DB_PASS }}
4644
WS_MAPBOX_ACCESS_TOKEN: ${{ secrets.WS_MAPBOX_ACCESS_TOKEN }}
@@ -54,6 +52,7 @@ jobs:
5452
env:
5553
ENV: ${{ vars.ENV }}
5654
WS_DOCKER_REGISTRY: ${{ vars.WS_DOCKER_REGISTRY }}
55+
CODE_VERSION: ${{ github.sha }}
5756

5857
# machine to deploy to
5958
AZURE_DOCKER_HOST_IP: ${{ vars.AZURE_DOCKER_HOST_IP }}

0 commit comments

Comments
 (0)