-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (35 loc) · 1.22 KB
/
dev-build-plr-intake.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build PLR-Intake Backend - Dev
on:
push:
branches: [develop]
paths:
- "backend/services.plr-intake/**"
- "backend/services.plr-intake.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-plr-intake:
name: PLR Intake Backend Build and Deploy
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./backend/services.plr-intake"
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-plr-intake: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-plr-intake:develop