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
WadeBarnes
left a comment
There was a problem hiding this comment.
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.
|
@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
/webto 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 targetingmasterbranch.CD (
deploy-web.yml) is triggered when changes are pushed to themasterbranch (merged PR) which does the following:webimage to GCHR.devenvironment.Type of change
How Has This Been Tested?
Executing the workflow manually in Github Actions where the feature branch is set.