PIDP-980 - Update Keycloak Email on First Update (#568) #76
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: 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-and-deploy-webapi: | |
name: WebAPI Backend Build and Deploy | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: "./backend/webapi" | |
steps: | |
- name: "Checkout Code" | |
uses: actions/checkout@master | |
- name: "Docker Build" | |
run: | | |
docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-webapi:develop . | |
# Uses the builder service account token | |
- name: "Docker Login to Silver OCP" | |
uses: docker/login-action@v2 | |
with: | |
registry: image-registry.apps.silver.devops.gov.bc.ca | |
username: builder | |
password: ${{ secrets.SILVER_TOOLS_BUILDER_TOKEN }} | |
- name: "Push image" | |
run: | | |
docker push image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-webapi:develop |