Closed severinbeauvais closed 1 week ago
export OPENSHIFT_DOCKER_REGISTRY="image-registry.apps.silver.devops.gov.bc.ca/cc892f-tools/business-pay"
docker login -u openshift -p $(oc whoami -t) $OPENSHIFT_DOCKER_REGISTRY
docker build --platform linux/amd64 --build-arg APP_ENV=production -t business-pay -f Dockerfile .
docker tag business-pay image-registry.apps.silver.devops.gov.bc.ca/cc892f-tools/business-pay
docker push image-registry.apps.silver.devops.gov.bc.ca/cc892f-tools/business-pay
oc -n cc892f-tools tag business-pay:latest business-pay:dev
oc -n cc892f-tools tag business-pay:dev business-pay:test
So, basically, you just need to run one command Sev which is that last one.
oc -n cc892f-tools tag business-pay:test business-pay:prod
Just a note that deploying Legal API took most of the afternoon and lots of help from Ops Team (Patrick, Andryi and Travis). The CD script kept failing due to some processes not completing, apparently due to insufficient CPU resources and pod scaling. Eventually Legal API was deployed manually (not using CD script).
We may need an action to review CPU allocating and pod scaling to avoid Legal API CD issue next time.
Completed
Prior to moving into production, the following steps should be completed or confirmed:
Deployment Steps
Dev:
Test:
Prod:
Smoke Test Script