OHID-360 Firstname in BCSC is now optional (#697) #107
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: Build WebAPI - Dev | |
| on: | |
| push: | |
| branches: [develop] | |
| paths: | |
| - "backend/webapi/**" | |
| - "backend/webapi.tests/**" | |
| workflow_dispatch: | |
| # This will terminate builds that are previously, but continuing to run. Saves GHA hours. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-webapi-gold: | |
| name: WebAPI Backend Build - Gold | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: "./backend/webapi" | |
| steps: | |
| - name: "Checkout Code" | |
| uses: actions/checkout@master | |
| - name: "Docker Build GOLD image" | |
| run: | | |
| docker build -t image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-webapi:develop . | |
| # Uses the builder service account token | |
| - name: "Docker Login to GOLD OCP" | |
| uses: docker/login-action@master | |
| with: | |
| registry: image-registry.apps.gold.devops.gov.bc.ca | |
| username: builder | |
| password: ${{ secrets.GOLD_TOOLS_BUILDER_TOKEN }} | |
| - name: "Push Docker image to GOLD OCP" | |
| run: | | |
| docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-webapi:develop | |
| - name: "Docker Build GOLDDR image" | |
| run: | | |
| docker tag image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-webapi:develop image-registry.apps.golddr.devops.gov.bc.ca/f088b1-tools/pidp-webapi:develop | |
| - name: "Docker Login to GOLDDR OCP" | |
| uses: docker/login-action@master | |
| with: | |
| registry: image-registry.apps.golddr.devops.gov.bc.ca | |
| username: builder | |
| password: ${{ secrets.GOLDDR_TOOLS_BUILDER_TOKEN }} | |
| - name: "Push image" | |
| run: | | |
| docker push image-registry.apps.golddr.devops.gov.bc.ca/f088b1-tools/pidp-webapi:develop |