Skip to content

gh-actions-pipelines-app[bot] triggered Release workflow #11

gh-actions-pipelines-app[bot] triggered Release workflow

gh-actions-pipelines-app[bot] triggered Release workflow #11

Workflow file for this run

name: Release workflow
run-name: ${{ github.actor }} triggered Release workflow
on:
push:
branches:
- "release/*"
jobs:
setup-preprod:
runs-on: ubuntu-latest
environment: preprod
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"
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-preprod:
needs: setup-preprod
uses: HDRUK/github-actions-templates/.github/workflows/docker-build.yaml@main
with:
environment: preprod
docker_build_args: ${{ needs.setup-preprod.outputs.docker_build_args }}
chart_path: chart/gateway-medcat/Chart.yaml
secrets: inherit
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