Workflows and any other common code used by bcgov/quickstart-openshift (template).
oc_server has been moved to a secret. It is an optional field, only affecting some users.
Example using shared workflow .pr-close.yml:
jobs:
cleanup:
name: Cleanup and Image Promotion
uses: bcgov/quickstart-openshift-helpers/.github/workflows/.pr-close.yml@vX.Y.Z
permissions:
packages: write
secrets:
oc_namespace: ${{ secrets.OC_NAMESPACE }}
oc_server: ${{ secrets.OC_SERVER }} # ADDED - OPTIONAL!
oc_token: ${{ secrets.OC_TOKEN }}
with:
cleanup: helm
packages: backend client migrations
oc_server: ${{ secrets.OC_SERVER }} # REMOVED - OPTIONAL!
rename_deployment.sh - rename a deployment (metadata, labels)
db_transfer.sh - stream pg_dump from one container to pg_restore in another
These scripts can be used to migrate a postgres database.
# 1. Scale down stack
# Use web console
# 2. Rename the old db
./rename_deployment.sh fom-test-db
# 3. Deploy the new db
oc process -f openshift.deploy.yml -p ZONE=test -p TAG=test | oc apply -f -
# 4. Stream dump from old to new db
./db_transfer.sh fom-test-db fom-test-db-prev
# 5. Scale up stack
# Use web console