-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PIDP-637 - init commit for dev helm deploys #260
Merged
Changes from 30 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
48b5d52
PIDP-637 - init commit for dev helm deploys
b80c616
Merge branch 'develop' into PIDP-637
5eb6b27
PIDP-637 - add pr stanza for testing
2147dc7
Merge branch 'PIDP-637' of https://github.com/bcgov/moh-pidp into PID…
79e5b5f
PIDP-637 - add prereq for helm install job
a726415
PIDP-637 - add prereq for helm install job
1f5a248
Merge branch 'develop' into PIDP-637
bfc84a6
PIDP-637 - remove code snippet
d0538dd
Merge branch 'PIDP-637' of https://github.com/bcgov/moh-pidp into PID…
537271f
PIDP-637 - update token and server url
5df160e
PIDP-637 - update charts dir
beaca62
PIDP-637 - update charts dir
3e08b0b
PIDP-637 - update absolute path
9a157c4
PIDP-637 - use built in gha
98cb302
PIDP-637 - use built in gha - adjust formatting
e979920
PIDP-637 - adjust version of deliverybot
af72e22
PIDP-637 - adjust version of chart
19cbf5b
PIDP-637 - adjust version of chart
591077b
Merge branch 'develop' into PIDP-637
5d39002
PIDP-637 - adjust version of chart
f672d2e
PIDP-637 - adjust dir
f253b4d
PIDP-637 - adjust dir for deploy values
930be87
PIDP-637 - adjust dir for deploy values
76f3904
PIDP-637 - add source code checkout
b7144f1
PIDP-637 - add source code checkout for webapi and plr-intake, add te…
187ac9a
PIDP-637 - remove duplicate file
52a3180
PIDP-637 - separate helm install into script
b0b6590
PIDP-637 - remove concurrency, duplicate file
309e2f1
PIDP-637 - remove workflow call
2eaf4f0
PIDP-637 - remove workflow call
a8ef50e
PIDP-637 - update helm charts, build scripts
6989e87
PIDP-637 - add dev deploy helm
261f82d
PIDP-637 - add pr stanza to trigger
6f12edd
Merge branch 'develop' into PIDP-637
9d162f1
PIDP-637 - change image tag
cf98a64
Merge branch 'PIDP-637' of https://github.com/bcgov/moh-pidp into PID…
acb533c
PIDP-637 - remove pr stanza from helm deploy
457182a
PIDP-637 - add namespace to image trigger
aee8ac3
PIDP-637 - remove pr stanza
796430f
PIDP-637 - update build scripts with appropriate triggers
23fa246
PIDP-637 - remove pr stanza triggers, add demo helm install script
954205c
PIDP-637 - add values files push triggers for helm install
aa28172
Merge branch 'develop' into PIDP-637
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Build Frontend - Dev | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [develop] | ||
paths: | ||
- "workspace/**" | ||
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-frontend: | ||
name: Frontend Build and Deploy | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: "./workspace" | ||
steps: | ||
- name: "Checkout Code" | ||
uses: actions/checkout@master | ||
|
||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: YARN Install | ||
run: | | ||
yarn install | ||
|
||
- name: YARN Build | ||
run: | | ||
yarn build | ||
|
||
- name: "Docker Build" | ||
run: | | ||
docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-frontend:dev . | ||
|
||
# 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-frontend:dev | ||
|
||
# call-helm-install-workflow: | ||
# uses: ./.github/workflows/dev-deploy_helm_chart.yaml | ||
helm-deployment: | ||
needs: [build-and-deploy-frontend] | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Authenticate and set context | ||
uses: redhat-actions/oc-login@v1.1 | ||
with: | ||
openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}} | ||
openshift_token: ${{secrets.OPENSHIFT_TOKEN}} | ||
namespace: d8a8f9-dev | ||
|
||
- name: Helm Deploy / install command | ||
run: | | ||
echo current installed helm releases | ||
helm list --namespace d8a8f9-dev | ||
|
||
echo installing helm chart... | ||
helm upgrade --install --wait --values ./deploy/dev_values.yaml --namespace d8a8f9-dev dev charts/pidp --debug | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Build PLR-Intake Backend - Dev | ||
|
||
on: | ||
pull_request: | ||
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:dev . | ||
|
||
# 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:dev | ||
|
||
# call-helm-install-workflow: | ||
# uses: ./.github/workflows/dev-deploy_helm_chart.yaml | ||
helm-deployment: | ||
needs: [build-and-deploy-plr-intake] | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Authenticate and set context | ||
uses: redhat-actions/oc-login@v1.1 | ||
with: | ||
openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}} | ||
openshift_token: ${{secrets.OPENSHIFT_TOKEN}} | ||
namespace: d8a8f9-dev | ||
|
||
- name: Helm Deploy / install command | ||
run: | | ||
echo current installed helm releases | ||
helm list --namespace d8a8f9-dev | ||
|
||
echo installing helm chart... | ||
helm upgrade --install --wait --values ./deploy/dev_values.yaml --namespace d8a8f9-dev dev charts/pidp --debug |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Build WebAPI - Dev | ||
|
||
on: | ||
pull_request: | ||
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:dev . | ||
|
||
# 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:dev | ||
|
||
# call-helm-install-workflow: | ||
# uses: ./.github/workflows/dev-deploy_helm_chart.yaml | ||
helm-deployment: | ||
needs: [build-and-deploy-webapi] | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Authenticate and set context | ||
uses: redhat-actions/oc-login@v1.1 | ||
with: | ||
openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}} | ||
openshift_token: ${{secrets.OPENSHIFT_TOKEN}} | ||
namespace: d8a8f9-dev | ||
|
||
- name: Helm Deploy / install command | ||
run: | | ||
echo current installed helm releases | ||
helm list --namespace d8a8f9-dev | ||
|
||
echo installing helm chart... | ||
helm upgrade --install --wait --values ./deploy/dev_values.yaml --namespace d8a8f9-dev dev charts/pidp --debug |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Deploy Helm Charts - Dev | ||
|
||
on: | ||
push: | ||
branches: [workflows] | ||
paths: | ||
- "workspace/**" | ||
workflow_call: | ||
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: | ||
|
||
helm-deployment: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Authenticate and set context | ||
uses: redhat-actions/oc-login@v1.1 | ||
with: | ||
openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}} | ||
openshift_token: ${{secrets.OPENSHIFT_TOKEN}} | ||
namespace: d8a8f9-dev | ||
|
||
- name: Helm Deploy / install command | ||
run: | | ||
echo current installed helm releases | ||
helm list --namespace d8a8f9-dev | ||
|
||
echo installing helm chart... | ||
helm upgrade --install --wait --values ./deploy/dev_values.yaml --namespace d8a8f9-dev dev charts/pidp --debug |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build Frontend | ||
|
||
on: | ||
push: | ||
branches: [workflows] | ||
paths: | ||
- "workspace/**" | ||
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-frontend: | ||
name: Frontend Build and Deploy | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: "./workspace" | ||
steps: | ||
- name: "Checkout Code" | ||
uses: actions/checkout@master | ||
|
||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: YARN Install | ||
run: | | ||
yarn install | ||
|
||
- name: YARN Build | ||
run: | | ||
yarn build | ||
|
||
- name: "Docker Build" | ||
run: | | ||
docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-frontend:main . | ||
|
||
# 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-frontend:main |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build PLR-Intake Backend | ||
|
||
on: | ||
push: | ||
branches: [workflows] | ||
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:main . | ||
|
||
# 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:main |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
helm upgrade --install --wait --values ./deploy/dev_values.yaml --namespace d8a8f9-dev dev charts/pidp --debug
suggestions: