-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: changing deployment to tools env
- Loading branch information
1 parent
595d46b
commit d826116
Showing
2 changed files
with
20 additions
and
31 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ jobs: | |
with: | ||
package: legacydb | ||
build_file: ./database/Dockerfile.legacy | ||
tag: ${{ github.event.number }} | ||
tag: latest | ||
tag_fallback: test | ||
triggers: ('database/') | ||
build_args: | | ||
|
@@ -73,41 +73,15 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: Initializing Deployment | ||
uses: bcgov-nr/[email protected] | ||
with: | ||
file: common/openshift.init.yml | ||
oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
oc_server: ${{ secrets.OC_SERVER }} | ||
oc_token: ${{ secrets.OC_TOKEN }} | ||
overwrite: true | ||
parameters: | ||
-p ZONE=${{ github.event.number }} | ||
-p ORACLEDB_USER=${{ secrets.ORACLEDB_USERNAME }} | ||
-p ORACLEDB_PASSWORD=${{ secrets.ORACLEDB_PASSWORD }} | ||
-p ORACLEDB_USER_W=${{ secrets.ORACLEDB_USERNAME_W }} | ||
-p ORACLEDB_PASSWORD_W=${{ secrets.ORACLEDB_PASSWORD_W }} | ||
-p ORACLEDB_DATABASE=${{ secrets.ORACLEDB_DATABASE }} | ||
-p ORACLEDB_HOST=${{ secrets.ORACLEDB_HOST }} | ||
-p ORACLEDB_SERVICENAME=${{ secrets.ORACLEDB_SERVICENAME }} | ||
-p ORACLEDB_SECRET=${{ secrets.ORACLEDB_SECRET }} | ||
-p BCREGISTRY_KEY=${{ secrets.BCREGISTRY_KEY }} | ||
-p BCREGISTRY_ACCOUNT=${{ secrets.BCREGISTRY_ACCOUNT }} | ||
-p CHES_CLIENT_ID=${{ secrets.CHES_CLIENT_ID }} | ||
-p CHES_CLIENT_SECRET=${{ secrets.CHES_CLIENT_SECRET }} | ||
-p ADDRESS_COMPLETE_KEY=${{ secrets.ADDRESS_COMPLETE_KEY }} | ||
-p DB_PASSWORD=$(echo ${{github.ref}}${{github.event.number}}|md5sum|cut -d' ' -f1) | ||
-p COGNITO_USER_POOL=${{ secrets.COGNITO_USER_POOL }} | ||
-p COGNITO_ENVIRONMENT=DEV | ||
-p CHES_MAIL_COPY=${{ secrets.CHES_MAIL_COPY }} | ||
|
||
- name: Deploy Database Legacy | ||
uses: bcgov-nr/[email protected] | ||
with: | ||
file: database/openshift.legacy.yml | ||
oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
oc_namespace: ${{ secrets.OC_TOOLS_NAMESPACE }} | ||
oc_server: ${{ secrets.OC_SERVER }} | ||
oc_token: ${{ secrets.OC_TOKEN }} | ||
overwrite: false | ||
parameters: | ||
-p ZONE=${{ github.event.number }} | ||
-p ZONE=tools | ||
-p ORACLEDB_USER_W=${{ secrets.ORACLEDB_USERNAME_W }} | ||
-p ORACLEDB_PASSWORD_W=${{ secrets.ORACLEDB_PASSWORD_W }} | ||
-p PROMOTE=${{ github.repository }}/legacydb:${{ github.event.number }} |
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