File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 uses : HDRUK/github-actions-templates/.github/workflows/semantic.yaml@main
1111 with :
1212 chart_path : chart/gateway-medcat/Chart.yaml
13+ secrets : inherit
14+
15+ setup-prod :
16+ runs-on : ubuntu-latest
17+ environment : prod
18+ outputs :
19+ docker_build_args : ${{ steps.args.outputs.docker_build_args }}
20+ steps :
21+ - name : Read BASE IMAGE VERSION file
22+ id : getappversion
23+ run : |
24+ echo "appversion=$(sed -n 's/^MEDCAT_BASE_IMAGE_VERSION=\(.*\)/\1/p' < medcat_versions.yml)" >> "$GITHUB_OUTPUT"
25+
26+ - id : args
27+ run : |
28+ ARGS=""
29+ ARGS+="--build-arg MEDCAT_BASE_IMAGE_VERSION=${{ steps.getappversion.outputs.appversion }} "
30+ echo "docker_build_args=$ARGS" >> "$GITHUB_OUTPUT"
31+
32+ build-prod :
33+ needs : setup-prod
34+ uses : HDRUK/github-actions-templates/.github/workflows/docker-build.yaml@main
35+ with :
36+ environment : prod
37+ docker_build_args : ${{ needs.setup-prod.outputs.docker_build_args }}
38+ chart_path : chart/gateway-medcat/Chart.yaml
1339 secrets : inherit
You can’t perform that action at this time.
0 commit comments