Skip to content

1.0.0.20-rc-prerelease #2

1.0.0.20-rc-prerelease

1.0.0.20-rc-prerelease #2

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 }}
deploy-prd:
needs: tag-builds
if: ${{ contains(github.event.release.tag_name, '-release') }}
uses: ./.github/workflows/terragrunt-deploy.yml
secrets: inherit
with:
DEFAULT_APPLICATION_ENVIRONMENT: prd
IMAGE_TAG: ${{ github.event.release.tag_name }}
COMMAND: apply
RUN_LIQUIBASE: 'true'
GDB_EXTRACTOR_IMAGE: ${{ needs.node-build.outputs.gdb_digest }}
wfprev-ui:
uses: ./.github/workflows/client-build.yml
needs: [deploy-prd]
with:
DEFAULT_APPLICATION_ENVIRONMENT: prd
secrets: inherit