Map symbol standardization #76
This file contains hidden or 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: PR | |
| on: | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| # Cancel in progress for PR open and close | |
| group: ${{ github.event.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| # https://github.com/bcgov-nr/action-builder-ghcr | |
| builds: | |
| name: Builds | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| # package: [backend, frontend, migrations] | |
| package: [analysis,backend,frontend] | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: bcgov-nr/action-builder-ghcr@v2.3.0 | |
| with: | |
| keep_versions: 20 | |
| package: ${{ matrix.package }} | |
| tag: ${{ github.event.number }} | |
| tag_fallback: latest | |
| # build_args: | | |
| # REACT_APP_BASE_URL=https://burn-severity-map-${{ github.event.number }}-frontend.apps.silver.devops.gov.bc.ca | |
| # REACT_APP_AUTH_CALLBACK_URL=https://burn-severity-map-${{ github.event.number }}-frontend.apps.silver.devops.gov.bc.ca/callback | |
| build_context: ${{ matrix.package == 'backend' && 'backend/api' || matrix.package }} | |
| build_file: ${{ matrix.package == 'backend' && 'backend/api/Dockerfile' || format('{0}/Dockerfile', matrix.package) }} | |
| triggers: ('${{ matrix.package }}/') | |
| # https://github.com/bcgov/quickstart-openshift-helpers | |
| deploys: | |
| name: Deploys | |
| needs: [builds] | |
| uses: ./.github/workflows/.deployer.yml | |
| secrets: | |
| oc_token: ${{ secrets.OC_TOKEN }} | |
| S3_ACCESS_ID: ${{ secrets.S3_ACCESS_ID }} | |
| S3_KEY: ${{ secrets.S3_KEY }} | |
| S3_BUCKET: ${{ secrets.S3_BUCKET }} | |
| with: | |
| environment: dev | |
| triggers: ('analysis/' 'frontend/' 'backend/' 'charts/' '.github/') | |
| params: >- | |
| --set global.secrets.persist=false | |
| --set-string frontend.baseUrl=https://burn-severity-map-${{ github.event.number }}-frontend.apps.silver.devops.gov.bc.ca | |
| --set-string global.s3.endPoint=${{ vars.S3_ENDPOINT }} | |
| --set global.ports.backend=${{ vars.BACKEND_PORT }} | |
| --set global.ports.frontend=${{ vars.FRONTEND_PORT }} | |
| --set global.ports.analysis=${{ vars.ANALYSIS_PORT }} | |
| --set-string global.dirs.tmpDir=${{ vars.TEMP_DIR }} | |
| --set-string global.dirs.extDir=${{ vars.EXT_DIR }} | |
| --set-string global.dirs.mainDir=${{ vars.MAIN_DIR }} | |
| --set-string global.files.parquet=${{ vars.PARQUET_FILE }} | |
| --set-string backend.appVersion=dev-${{ github.event.number }} | |
| --set-string global.sso.clientID=${{ vars.OIDC_CLIENT_ID }} | |
| --set-string global.sso.authorityURL=${{ vars.OIDC_AUTHORITY_DEV }} | |
| results: | |
| name: PR Results | |
| # needs: [builds, deploys, tests] | |
| needs: [builds, deploys] | |
| if: always() | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - if: contains(needs.*.result, 'failure') | |
| run: echo "At least one job has failed." && exit 1 | |
| - run: echo "Success!" |