soringumeni1 triggered Release workflow #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release workflow | |
| run-name: ${{ github.actor }} triggered Release workflow | |
| on: | |
| push: | |
| branches: | |
| - "release/*" | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| environment: release | |
| 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" | |
| - id: args | |
| run: | | |
| ARGS="" | |
| ARGS+="--build-arg MEDCAT_BASE_IMAGE_VERSION=${{ steps.getappversion.outputs.appversion }} " | |
| echo "docker_build_args=$ARGS" >> "$GITHUB_OUTPUT" | |
| build: | |
| needs: setup | |
| uses: HDRUK/github-actions-templates/.github/workflows/docker-build.yaml@main | |
| with: | |
| environment: release | |
| docker_build_args: ${{ needs.setup.outputs.docker_build_args }} | |
| chart_path: chart/gateway-medcat/Chart.yaml | |
| download_models: true | |
| secrets: inherit |