File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff 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 }}
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}}
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
You can’t perform that action at this time.
0 commit comments