-
Notifications
You must be signed in to change notification settings - Fork 0
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
Web CI and CD Workflow Pipelines #9
Conversation
- Allow triggering of workflow via GH UI - Added lint and test step but skips it for now
- Added Lint step for API CI
- Added temp code for deploy2test - Rename deploy-web to deploy-to-aws
- Pass node version
- Rename to deploy-web
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.
lgtm
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.
My only real comments and concerns are around the image/code build.
There's some inconsistencies with the way the image/code is being built. It's built using a matrix to define the node version (currently v12) when the code is built and tested. Node 12 is also used by the manage script during the s2i build, but node 10 (hard coded) is being used by the ./web/Dockerfile.node and the workflows. I like the matrix approach, but the docker builds/files would need to be updated to support the nodes versions being passed in as arguments. Examples; https://github.com/hyperledger/aries-cloudagent-python/blob/main/.github/workflows/publish.yml, https://github.com/hyperledger/aries-cloudagent-python/blob/main/docker/Dockerfile
Any dockerfiles should be defined under the docker folder (i.e. not in web).
Builds should be consistent and use consistent tool versions. My comments above would address this.
Workflows should stick with building images using maintained GitHub Actions such as docker/build-push-action and redhat-actions/s2i-build where possible.
We might want to switch the web build over to using a composite build. https://github.com/hyperledger/aries-cloudagent-python/blob/main/docker/Dockerfile is an example of this.
Happy to have a meeting to discuss further if you like.
The issues don't need to be addressed all at once. We could address the main ones, the inconsistences and then deal with the others as separate enhancement tasks. |
- Pass node version as an argument rather than hardcoded.
Quality Gate passedIssues Measures |
@WadeBarnes Appreciate the great comments. I actually got the idea from this PR from the main SCC branch but I was able to address the major comment and now passing the node version as an argument to the Dockerfile. I had to break the I also created a new ticket (https://jag.gov.bc.ca/jira/browse/JASPER-101) so the enhancement effort is tracked. |
Pull Request for JIRA Ticket: JIRA-74
Issue ticket number and link
https://jag.gov.bc.ca/jira/browse/JASPER-74
Description
Made some updates to
/web
to be able to build the docker image successfully.CI and CD workflow for the Web (Vue) project
CI (
build-and-test-web.yml
) is triggered when a PR is created targetingmaster
branch.CD (
deploy-web.yml
) is triggered when changes are pushed to themaster
branch (merged PR) which does the following:web
image to GCHR.dev
environment.Type of change
How Has This Been Tested?
Executing the workflow manually in Github Actions where the feature branch is set.