testing playwright in app-base #1235
Workflow file for this run
This file contains 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: Monorepo deploy pipelines | |
on: | |
push: | |
tags: | |
- 'dev**' | |
- 'staging**' | |
- 'prod**' | |
branches: | |
- master | |
jobs: | |
build-forms-shared: | |
name: Build and push specific forms-shared image | |
uses: bratislava/github-actions/.github/workflows/build-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: forms-shared/ | |
build_image_no_registry: '' | |
tag: '--tag=${{ github.ref_name }}-${{ github.sha }}' | |
secrets: | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
conditions: | |
name: Check for cluster conditions | |
needs: build-forms-shared | |
uses: bratislava/konto.bratislava.sk/.github/workflows/cluster-deploy-conditions-konto.yml@stable | |
deploy-dev: | |
name: after dev Backends deploy Next | |
needs: [conditions, deploy-dev-strapi, deploy-dev-nest-forms-backend, deploy-dev-nest-clamav-scanner] | |
if: needs.conditions.outputs.dev == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@beta | |
with: | |
directory: next/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.ref_name }}-${{ github.sha }}"' | |
cluster: tkg-innov-dev | |
url: https://tkg.dev.bratislava.sk | |
debug: --debug | |
version: beta | |
secrets: | |
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-dev-next: | |
name: dev Next | |
needs: conditions | |
if: needs.conditions.outputs.dev-next == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@beta | |
with: | |
directory: next/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.ref_name }}-${{ github.sha }}"' | |
cluster: tkg-innov-dev | |
url: https://tkg.dev.bratislava.sk | |
debug: --debug | |
version: beta | |
secrets: | |
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-dev-strapi: | |
name: dev Strapi | |
needs: conditions | |
if: needs.conditions.outputs.dev-strapi == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@beta | |
with: | |
directory: strapi/ | |
cluster: tkg-innov-dev | |
url: https://tkg.dev.bratislava.sk | |
debug: --debug | |
version: beta | |
secrets: | |
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-dev-nest-forms-backend: | |
name: dev nest-forms-backend | |
needs: conditions | |
if: needs.conditions.outputs.dev-nest-forms-backend == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@beta | |
with: | |
directory: nest-forms-backend/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.ref_name }}-${{ github.sha }}"' | |
cluster: tkg-innov-dev | |
url: https://tkg.dev.bratislava.sk | |
debug: --debug | |
version: beta | |
secrets: | |
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-dev-clamav: | |
name: dev clamav | |
needs: conditions | |
if: needs.conditions.outputs.dev-clamav == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@beta | |
with: | |
directory: clamav/ | |
cluster: tkg-innov-dev | |
url: https://tkg.dev.bratislava.sk | |
debug: --debug | |
version: beta | |
secrets: | |
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-dev-nest-clamav-scanner: | |
name: dev nest-clamav-scanner | |
needs: [conditions, deploy-dev-clamav] | |
if: needs.conditions.outputs.dev-nest-clamav-scanner == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@beta | |
with: | |
directory: nest-clamav-scanner/ | |
cluster: tkg-innov-dev | |
url: https://tkg.dev.bratislava.sk | |
debug: --debug | |
version: beta | |
secrets: | |
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-staging: | |
name: after staging Backends deploy Next | |
needs: [conditions, deploy-staging-strapi, deploy-staging-nest-forms-backend, deploy-staging-nest-clamav-scanner] | |
if: needs.conditions.outputs.staging == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: next/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.ref_name }}-${{ github.sha }}"' | |
cluster: tkg-innov-staging | |
url: https://tkg.staging.bratislava.sk | |
debug: --debug | |
flag: --staging | |
secrets: | |
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-staging-next: | |
name: staging Next | |
needs: conditions | |
if: needs.conditions.outputs.staging-next == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: next/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.ref_name }}-${{ github.sha }}"' | |
cluster: tkg-innov-staging | |
url: https://tkg.staging.bratislava.sk | |
debug: --debug | |
flag: --staging | |
secrets: | |
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-staging-strapi: | |
name: staging Strapi | |
needs: conditions | |
if: needs.conditions.outputs.staging-strapi == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: strapi/ | |
cluster: tkg-innov-staging | |
url: https://tkg.staging.bratislava.sk | |
debug: --debug | |
flag: --staging | |
secrets: | |
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-staging-nest-forms-backend: | |
name: staging nest-forms-backend | |
needs: conditions | |
if: needs.conditions.outputs.staging-nest-forms-backend == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: nest-forms-backend/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.ref_name }}-${{ github.sha }}"' | |
cluster: tkg-innov-staging | |
url: https://tkg.staging.bratislava.sk | |
debug: --debug | |
flag: --staging | |
secrets: | |
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-staging-clamav: | |
name: staging clamav | |
needs: conditions | |
if: needs.conditions.outputs.staging-clamav == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: clamav/ | |
cluster: tkg-innov-staging | |
url: https://tkg.staging.bratislava.sk | |
debug: --debug | |
flag: --staging | |
secrets: | |
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-staging-nest-clamav-scanner: | |
name: staging nest-clamav-scanner | |
needs: [conditions, deploy-staging-clamav] | |
if: needs.conditions.outputs.staging-nest-clamav-scanner == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: nest-clamav-scanner/ | |
cluster: tkg-innov-staging | |
url: https://tkg.staging.bratislava.sk | |
debug: --debug | |
flag: --staging | |
secrets: | |
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-prod: | |
name: after prod Backends deploy Next | |
needs: [conditions, deploy-prod-strapi, deploy-prod-nest-forms-backend, deploy-prod-nest-clamav-scanner] | |
if: needs.conditions.outputs.prod == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: next/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.ref_name }}-${{ github.sha }}"' | |
cluster: tkg-innov-prod | |
url: https://tkg.bratislava.sk | |
flag: --production | |
debug: --debug | |
secrets: | |
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-prod-next: | |
name: prod Next | |
needs: conditions | |
if: needs.conditions.outputs.prod-next == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: next/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.ref_name }}-${{ github.sha }}"' | |
cluster: tkg-innov-prod | |
url: https://tkg.bratislava.sk | |
flag: --production | |
debug: --debug | |
secrets: | |
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-prod-strapi: | |
name: prod Strapi | |
needs: conditions | |
if: needs.conditions.outputs.prod-strapi == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: strapi/ | |
cluster: tkg-innov-prod | |
url: https://tkg.bratislava.sk | |
flag: --production | |
debug: --debug | |
secrets: | |
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-prod-nest-forms-backend: | |
name: prod nest-forms-backend | |
needs: conditions | |
if: needs.conditions.outputs.prod-nest-forms-backend == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: nest-forms-backend/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.ref_name }}-${{ github.sha }}"' | |
cluster: tkg-innov-prod | |
url: https://tkg.bratislava.sk | |
flag: --production | |
debug: --debug | |
secrets: | |
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-prod-clamav: | |
name: prod clamav | |
needs: conditions | |
if: needs.conditions.outputs.prod-clamav == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: clamav/ | |
cluster: tkg-innov-prod | |
url: https://tkg.bratislava.sk | |
flag: --production | |
debug: --debug | |
secrets: | |
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
deploy-prod-nest-clamav-scanner: | |
name: prod nest-clamav-scanner | |
needs: [conditions, deploy-prod-clamav] | |
if: needs.conditions.outputs.prod-nest-clamav-scanner == 'true' | |
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: nest-clamav-scanner/ | |
cluster: tkg-innov-prod | |
url: https://tkg.bratislava.sk | |
flag: --production | |
debug: --debug | |
secrets: | |
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} |