Skip to content

Commit ae1564a

Browse files
committed
Update build.yaml
1 parent cb72386 commit ae1564a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ jobs:
3030
with:
3131
submodules: recursive
3232

33+
# frontend submod
3334
- uses: actions/checkout@v2
3435
with:
3536
repository: TaskarCenterAtUW/workspaces-frontend
3637
path: frontend
3738
ref: refs/tags/${{github.event.inputs.env}}
38-
39+
- run: cd frontend; FRONTEND_VERSION=`/usr/bin/git log -1 --format='%H'` >> "$GITHUB_ENV"
40+
41+
3942
- uses: docker/login-action@v3
4043
with:
4144
registry: ${{ vars.WS_DOCKER_REGISTRY }}
@@ -55,10 +58,6 @@ jobs:
5558
ENV: ${{ vars.ENV }}
5659
run: echo "ENV_NAME_PARAM=-${ENV}" >> "$GITHUB_ENV"
5760

58-
59-
60-
61-
6261
- name: Build and push
6362
run: |
6463
docker compose -f docker-compose.build.yml --env-file tdei_uw.env build --build-arg CODE_VERSION=${CODE_VERSION} ${{github.event.inputs.build_flag}}
@@ -84,7 +83,7 @@ jobs:
8483
- name: Deploy
8584
env:
8685
ENV: ${{ vars.ENV }}
87-
CODE_VERSION: ${{ github.sha }}
86+
CODE_VERSION: "Frontend: ${{ env.FRONTEND_VERSION }}"
8887
ENV_NAME_PARAM: ${{ env.ENV_NAME_PARAM }}
8988

9089
# machine to deploy to

0 commit comments

Comments
 (0)