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

Add helm charts & build publish workflows #6

Merged
merged 17 commits into from
Jun 17, 2022

Conversation

terryyylim
Copy link
Contributor

What this PR does / why we need it:

This PR adds helm charts for both Management and Treatment Services. In addition, build and publish steps are added to Github Actions workflow for generation of the services' artifacts.

Which issue(s) this PR fixes:

NONE

@terryyylim terryyylim self-assigned this Jun 6, 2022
@terryyylim terryyylim force-pushed the add-helm-chart-build-publish branch 7 times, most recently from 5273693 to 32f5656 Compare June 6, 2022 08:34
@terryyylim terryyylim force-pushed the add-helm-chart-build-publish branch from cbf2631 to 0de81b5 Compare June 14, 2022 06:49
@@ -1,182 +0,0 @@
name: CI
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed file to xp.yml and added build/publish steps to new file.

# - build-management-service
# - build-treatment-service
# - release-rules
# uses: gojek/xp/.github/workflows/release.yml@main
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To uncomment release action in subsequent PR.

@terryyylim terryyylim requested a review from a team June 14, 2022 22:21
@terryyylim terryyylim changed the title [WIP] Add helm charts & build publish workflows Add helm charts & build publish workflows Jun 14, 2022
Copy link
Collaborator

@krithika369 krithika369 left a comment

Choose a reason for hiding this comment

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

Apologies on the delayed review. On the whole it LGTM. I left some comments for changes.

path: ui/build/
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}

build-management-service:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we combine this with the publish step ? In turing, the build / publish separation makes sense because the built docker images are used in the e2e tests. We don't need to build the docker images ahead of time for XP, right? The built API binaries from the e2e-tests job can be saved as artifacts for reuse. Then, during the publish phase, we can build the UI and subsequently use the API binaries in the docker image for the management service. Similar steps for the treatment service minus the UI.

@terryyylim terryyylim force-pushed the add-helm-chart-build-publish branch from 42d7e0b to 52ad965 Compare June 17, 2022 06:18
@terryyylim terryyylim force-pushed the add-helm-chart-build-publish branch from 52ad965 to 047efe4 Compare June 17, 2022 06:26
Copy link
Collaborator

@krithika369 krithika369 left a comment

Choose a reason for hiding this comment

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

LGTM. 🚀

@terryyylim terryyylim merged commit 455b3a0 into main Jun 17, 2022
@terryyylim terryyylim deleted the add-helm-chart-build-publish branch June 20, 2022 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants