Skip to content

Commit

Permalink
add workflows for test and main - Gold
Browse files Browse the repository at this point in the history
  • Loading branch information
rshourou committed Oct 3, 2024
1 parent 8f6cfdf commit 0be744d
Show file tree
Hide file tree
Showing 29 changed files with 728 additions and 357 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/dev-build-endorsement-reminder-gold.yaml

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/dev-build-frontend-gold.yaml

This file was deleted.

48 changes: 45 additions & 3 deletions .github/workflows/dev-build-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ concurrency:
cancel-in-progress: true

jobs:
build-and-deploy-frontend:
name: Frontend Build and Deploy
build-frontend-silver:
name: Frontend Build - Silver
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -38,7 +38,8 @@ jobs:
- name: "Docker Build"
run: |
docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-frontend:develop .
docker build -t pidp-frontend:develop .
docker tag pidp-frontend:develop image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-frontend:develop
# Uses the builder service account token
- name: "Docker Login to Silver OCP"
Expand All @@ -51,3 +52,44 @@ jobs:
- name: "Push image"
run: |
docker push image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-frontend:develop
build-frontend-gold:
name: Frontend Build - Gold
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./workspace"
steps:
- name: "Checkout Code"
uses: actions/checkout@master

- name: "Docker Build GOLD"
run: |
docker tag pidp-frontend:develop image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-frontend:develop
# Uses the Artifactory service account's username and password
- name: "Docker Login to GOLD OCP"
uses: docker/login-action@v2
with:
registry: image-registry.apps.gold.devops.gov.bc.ca
username: builder
password: ${{ secrets.GOLD_TOOLS_BUILDER_TOKEN }}

- name: "Push image to GOLD OCP"
run: |
docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-frontend:develop
- name: "Docker Build GOLDDR"
run: |
docker tag image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-frontend:develop image-registry.apps.golddr.devops.gov.bc.ca/f088b1-tools/pidp-frontend:develop .
# Uses the Artifactory service account's username and password
- name: "Docker Login to GOLDDR OCP"
uses: docker/login-action@v2
with:
registry: image-registry.apps.golddr.devops.gov.bc.ca
username: builder
password: ${{ secrets.GOLDDR_TOOLS_BUILDER_TOKEN }}

- name: "Push image to GOLDDR OCP"
run: |
docker push image-registry.apps.golddr.devops.gov.bc.ca/f088b1-tools/pidp-frontend:develop
60 changes: 0 additions & 60 deletions .github/workflows/dev-build-plr-intake-gold.yaml

This file was deleted.

48 changes: 45 additions & 3 deletions .github/workflows/dev-build-plr-intake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ concurrency:
cancel-in-progress: true

jobs:
build-and-deploy-plr-intake:
name: PLR Intake Backend Build and Deploy
build-plr-intake-silver:
name: PLR Intake Backend Build - Silver
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -26,7 +26,8 @@ jobs:

- name: "Docker Build"
run: |
docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-plr-intake:develop .
docker build -t pidp-plr-intake:develop .
docker tag pidp-plr-intake:develop 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"
Expand All @@ -39,3 +40,44 @@ jobs:
- name: "Push image"
run: |
docker push image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-plr-intake:develop
build-plr-intake-gold:
name: PLR Intake Backend Build - Gold
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./backend/services.plr-intake"
steps:
- name: "Checkout Code"
uses: actions/checkout@master


# 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 image"
run: |
docker tag pidp-plr-intake:develop image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-plr-intake:develop
docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-plr-intake:develop
- name: "Docker Build GOLDDR image"
run: |
docker tag image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-plr-intake:develop image-registry.apps.golddr.devops.gov.bc.ca/f088b1-tools/pidp-plr-intake:develop
# Uses the builder service account token
- 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 tag pidp-plr-intake:develop image-registry.apps.golddr.devops.gov.bc.ca/f088b1-tools/pidp-plr-intake:develop
docker push image-registry.apps.golddr.devops.gov.bc.ca/f088b1-tools/pidp-plr-intake:develop
59 changes: 0 additions & 59 deletions .github/workflows/dev-build-webapi-gold.yaml

This file was deleted.

Loading

0 comments on commit 0be744d

Please sign in to comment.