Skip to content

v1.0.0-release

v1.0.0-release #9

Workflow file for this run

on:
release:
types: [released]
jobs:
tag-builds:
runs-on: ubuntu-latest
strategy:
matrix:
component-name: [
wfprev-api,
liquibase
]
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ vars.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN}}
- name: Tag relevant images
run: |
docker pull ${{vars.REGISTRY}}/${{ github.repository }}-${{ matrix.component-name }}:latest
docker tag ${{vars.REGISTRY}}/${{ github.repository }}-${{ matrix.component-name }}:latest ${{vars.REGISTRY}}/${{ github.repository }}-${{ matrix.component-name }}:${{ github.event.release.tag_name }}
docker push ${{vars.REGISTRY}}/${{ github.repository }}-${{ matrix.component-name }}:${{ github.event.release.tag_name }}
node-build:
uses: ./.github/workflows/node-build.yml
secrets: inherit
with:
COMPONENT_NAME: wfprev-gdb-extractor
TAG: ${{ github.event.release.tag_name }}
reports-generator-build:
uses: ./.github/workflows/report-generator-image-build.yml
secrets: inherit
with:
TAG: ${{ github.event.release.tag_name }}
deploy-prod:
needs: [tag-builds, node-build, reports-generator-build]
if: ${{ contains(github.event.release.tag_name, '-release') }}
uses: ./.github/workflows/terragrunt-deploy.yml
secrets: inherit
with:
DEFAULT_APPLICATION_ENVIRONMENT: wfprd
IMAGE_TAG: ${{ github.event.release.tag_name }}
COMMAND: apply
RUN_LIQUIBASE: 'true'
wfprev-ui:
uses: ./.github/workflows/client-build.yml
needs: [deploy-prod]
with:
DEFAULT_APPLICATION_ENVIRONMENT: wfprd
secrets: inherit