1983 Summary format number #1986
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: Validate and build resources with bratiska-cli | |
on: | |
pull_request: | |
branches: | |
- master | |
permissions: | |
pull-requests: write | |
contents: read | |
jobs: | |
test-forms-shared: | |
name: Run tests on forms-shared | |
uses: bratislava/konto.bratislava.sk/.github/workflows/validate-forms-shared-konto.yml@stable | |
with: | |
directory: forms-shared/ | |
build-forms-shared: | |
name: Build image of forms-shared and push it to harbor | |
uses: bratislava/github-actions/.github/workflows/build-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: forms-shared/ | |
build_image_no_registry: '' | |
tag: '--tag=build-${{ github.sha }}' | |
fetch-depth: 1 | |
secrets: | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
docker-pass: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | |
conditions: | |
name: Check for conditions | |
needs: [test-forms-shared, build-forms-shared] | |
uses: bratislava/konto.bratislava.sk/.github/workflows/build-conditions-konto.yml@stable | |
permissions: write-all | |
validate-next: | |
name: validate next | |
needs: conditions | |
if: needs.conditions.outputs.next == 'true' || needs.conditions.outputs.forms-shared == 'true' | |
uses: bratislava/github-actions/.github/workflows/validate-typescript.yml@stable | |
with: | |
directory: next/ | |
permissions: write-all | |
build-next: | |
name: build next | |
needs: [conditions, validate-next] | |
if: needs.conditions.outputs.next == 'true' || needs.conditions.outputs.forms-shared == 'true' | |
uses: bratislava/github-actions/.github/workflows/build-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: next/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=build-${{ github.sha }}"' | |
debug: --debug | |
fetch-depth: 1 | |
build_image_no_registry: '' | |
secrets: | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
docker-pass: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | |
permissions: write-all | |
build-strapi: | |
name: build Strapi | |
needs: conditions | |
if: needs.conditions.outputs.strapi == 'true' | |
uses: bratislava/github-actions/.github/workflows/build-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: strapi/ | |
debug: --debug | |
fetch-depth: 1 | |
permissions: write-all | |
validate-nest-forms-backend: | |
name: validate nest-forms-backend | |
needs: conditions | |
if: needs.conditions.outputs.nest-forms-backend == 'true' || needs.conditions.outputs.forms-shared == 'true' | |
uses: bratislava/konto.bratislava.sk/.github/workflows/validate-nest-prisma-konto.yml@stable | |
with: | |
directory: nest-forms-backend/ | |
permissions: write-all | |
build-nest-forms-backend: | |
name: build nest-forms-backend | |
needs: [conditions, validate-nest-forms-backend] | |
if: needs.conditions.outputs.nest-forms-backend == 'true' || needs.conditions.outputs.forms-shared == 'true' | |
uses: bratislava/github-actions/.github/workflows/build-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: nest-forms-backend/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=build-${{ github.sha }}"' | |
fetch-depth: 1 | |
build_image_no_registry: '' | |
secrets: | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
docker-pass: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | |
permissions: write-all | |
validate-nest-clamav-scanner: | |
name: validate nest-clamav-scanner | |
needs: conditions | |
if: needs.conditions.outputs.nest-clamav-scanner == 'true' | |
uses: bratislava/konto.bratislava.sk/.github/workflows/validate-nest-prisma-konto.yml@stable | |
with: | |
directory: nest-clamav-scanner/ | |
permissions: write-all | |
build-nest-clamav-scanner: | |
name: build nest-clamav-scanner | |
needs: [conditions, validate-nest-clamav-scanner] | |
if: needs.conditions.outputs.nest-clamav-scanner == 'true' | |
uses: bratislava/github-actions/.github/workflows/build-with-bratiska-cli-inhouse.yml@stable | |
with: | |
directory: nest-clamav-scanner/ | |
fetch-depth: 1 | |
secrets: | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
docker-pass: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | |
permissions: write-all | |
validate-nest-tax-backend: | |
name: validate nest-tax-backend | |
needs: conditions | |
if: needs.conditions.outputs.nest-tax-backend == 'true' | |
uses: bratislava/konto.bratislava.sk/.github/workflows/validate-nest-prisma-konto.yml@stable | |
with: | |
directory: nest-tax-backend/ | |
permissions: write-all | |
build-nest-tax-backend: | |
name: build nest-tax-backend | |
needs: [ conditions, validate-nest-tax-backend ] | |
if: needs.conditions.outputs.nest-tax-backend == 'true' | |
uses: bratislava/github-actions/.github/workflows/build-with-bratiska-cli.yml@stable | |
with: | |
directory: nest-tax-backend/ | |
build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.sha }}"' | |
secrets: | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
docker-pass: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | |
permissions: write-all | |
validate-nest-city-account: | |
name: validate nest-city-account | |
needs: conditions | |
if: needs.conditions.outputs.nest-city-account == 'true' | |
uses: bratislava/konto.bratislava.sk/.github/workflows/validate-nest-prisma-konto.yml@beta | |
with: | |
directory: nest-city-account/ | |
permissions: write-all | |
build-nest-city-account: | |
name: build nest-city-account | |
needs: [ conditions, validate-nest-city-account ] | |
if: needs.conditions.outputs.nest-city-account == 'true' | |
uses: bratislava/github-actions/.github/workflows/build-with-bratiska-cli.yml@stable | |
with: | |
directory: nest-city-account/ | |
secrets: | |
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} | |
docker-pass: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | |
permissions: write-all |