Skip to content

Commit 026b2da

Browse files
committed
updated semantic pipeline
1 parent db05ff4 commit 026b2da

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/semantic-release-workflow.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,30 @@ jobs:
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

0 commit comments

Comments
 (0)