Skip to content

WFPREV 1.1.0 TEST release 02 #35

WFPREV 1.1.0 TEST release 02

WFPREV 1.1.0 TEST release 02 #35

Workflow file for this run

on:
release:
types: [prereleased]
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 }}
# include additional steps for DLV, PRD
# rename to deploy-wftst, rename environment to tst
deploy-wfdlv:
needs: [tag-builds, node-build]
if: ${{ contains(github.event.release.tag_name, '-beta') }}
uses: ./.github/workflows/terragrunt-deploy.yml
secrets: inherit
with:
DEFAULT_APPLICATION_ENVIRONMENT: wfdlv
IMAGE_TAG: ${{ github.event.release.tag_name }}
COMMAND: apply
RUN_LIQUIBASE: 'true'
wfprev-ui-dlv:
uses: ./.github/workflows/client-build.yml
needs: [deploy-wfdlv]
with:
DEFAULT_APPLICATION_ENVIRONMENT: wfdlv
secrets: inherit
deploy-wftst:
needs: [tag-builds, node-build]
if: ${{ contains(github.event.release.tag_name, '-rc') }}
uses: ./.github/workflows/terragrunt-deploy.yml
secrets: inherit
with:
DEFAULT_APPLICATION_ENVIRONMENT: wftst
IMAGE_TAG: ${{ github.event.release.tag_name }}
COMMAND: apply
RUN_LIQUIBASE: 'true'
wfprev-ui-tst:
uses: ./.github/workflows/client-build.yml
needs: [deploy-wftst]
with:
DEFAULT_APPLICATION_ENVIRONMENT: wftst
secrets: inherit