Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/dev_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
outputs:
docker_build_args: ${{ steps.args.outputs.docker_build_args }}
steps:
- uses: actions/checkout@v6

- name: Read BASE IMAGE VERSION file
id: getappversion
run: |
echo "appversion=$(sed -n 's/^MEDCAT_BASE_IMAGE_VERSION=\(.*\)/\1/p' < medcat_versions.yml)" >> "$GITHUB_OUTPUT"
echo "appversion=$(sed -n 's/^MEDCAT_BASE_IMAGE_VERSION=\(.*\)/\1/p' medcat_versions.yml)" >> "$GITHUB_OUTPUT"

- id: args
run: |
Expand All @@ -31,6 +33,7 @@ jobs:
chart_path: chart/gateway-medcat/Chart.yaml
environment: dev
docker_build_args: ${{ needs.setup.outputs.docker_build_args }}
download_models: true
secrets: inherit

deploy:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/semantic-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,30 @@ jobs:
uses: HDRUK/github-actions-templates/.github/workflows/semantic.yaml@main
with:
chart_path: chart/gateway-medcat/Chart.yaml
secrets: inherit

setup-prod:
runs-on: ubuntu-latest
environment: prod
outputs:
docker_build_args: ${{ steps.args.outputs.docker_build_args }}
steps:
- name: Read BASE IMAGE VERSION file
id: getappversion
run: |
echo "appversion=$(sed -n 's/^MEDCAT_BASE_IMAGE_VERSION=\(.*\)/\1/p' < medcat_versions.yml)" >> "$GITHUB_OUTPUT"

- id: args
run: |
ARGS=""
ARGS+="--build-arg MEDCAT_BASE_IMAGE_VERSION=${{ steps.getappversion.outputs.appversion }} "
echo "docker_build_args=$ARGS" >> "$GITHUB_OUTPUT"

build-prod:
needs: setup-prod
uses: HDRUK/github-actions-templates/.github/workflows/docker-build.yaml@main
with:
environment: prod
docker_build_args: ${{ needs.setup-prod.outputs.docker_build_args }}
chart_path: chart/gateway-medcat/Chart.yaml
secrets: inherit
Loading