Skip to content
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

PSP-9561 Update release GHA to support deployments #4503

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

asanchezr
Copy link
Collaborator

No description provided.

@asanchezr asanchezr self-assigned this Nov 27, 2024
shell: bash
run: |
oc process -f ./openshift/s2i/nginx-runtime/nginx-runtime.yaml -p GIT_REF=${{github.event.inputs.HOTFIX_BRANCH}} -p OUTPUT_IMAGE_TAG="latest-${{github.event.inputs.HOTFIX_BRANCH}}" | oc create --selector ci_cd=true -f -
oc process -f ./openshift/4.0/templates/api/build.yaml -p GIT_REF=${{github.event.inputs.HOTFIX_BRANCH}} -p OUTPUT_IMAGE_TAG="latest-${{github.event.inputs.HOTFIX_BRANCH}}" | oc create --selector ci_cd=true -f -
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would also need a create builds for the new microservices for this to work (or there won't be a correctly named build for the proxy to run). Options here are:

  1. add a build.yaml for the proxy and then add a section here to create that build, same as the others.
  2. disable this GHA for now, as we always hold UAT until after release these days.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action is for the weird case of a UAT hotfix where we are holding UAT to release to PROD (I think).
The most used UAT hotfix action is the other one (named uat-hotfix.yaml). I think Devin knows the difference.
This would need to be modified in the near future

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I am going to disable this GHA for now and log tech debt to address this. Otherwise the rest of the changes would be waiting for that. As you said - this is not often used.

- name: Call script to build frontend (pims-app and pims-app-base)
run: |
./openshift/4.0/player.sh build app-base -apply
./openshift/4.0/player.sh build app -apply
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to build the proxy as well (that is in my PR for the scheduler microservice).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The proxy DOES get built in the next step (bundled with the API build). This step is for the frontend. Did I miss something else?

run: |
VERSION=$(make version)
oc tag pims-app:uat pims-app:v${VERSION}-master
oc tag pims-api:uat pims-api:v${VERSION}-master
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also need a tag here for the proxy.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixed there and in the retag GHA from test to uat

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also needed to add a tag for mayan here

Copy link
Collaborator

@devinleighsmith devinleighsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments on uat_pre_release_hotfix_argo - you'll need to choose option 1, 2 or a third I haven't thought of.

@asanchezr asanchezr force-pushed the psp-9561-gha-deployment-updates branch from 87466c9 to 5c73a71 Compare November 28, 2024 00:35
@asanchezr asanchezr merged commit b78b153 into bcgov:dev Nov 28, 2024
8 checks passed
@asanchezr asanchezr deleted the psp-9561-gha-deployment-updates branch November 28, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants