-
Notifications
You must be signed in to change notification settings - Fork 17
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
[ISSUE 406] Fix deploy Github Actions workflow #407
Conversation
# !! Uncomment the following lines once you've set up the dev environment and ready to turn on continuous deployment | ||
# push: | ||
# branches: | ||
# - 'main' | ||
# paths: | ||
# - 'frontend/**' | ||
# - 'bin/**' | ||
# - 'infra/**' |
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.
we want to leave this commented out
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.
Why is that? We have a dev environment set up
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.
sorry i totally thought i was reviewing a Pr in a different repo
92f73ec
to
d285140
Compare
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.
Looks good!
nit: I noticed you chose to make the inputs type string
, however I think unless they put in frontend
or api
it will break. In that case, should we make them type of choice with frontend and api so that it can't be broken by putting in a typo?
app_name: | ||
description: "name of application folder under infra directory" | ||
required: true | ||
type: string |
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.
Will this fail if something other than frontend or api is entered? In that case should we make this type a choice instead of string to reduce the chance of mistakes?
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.
It won't run if you don't manage to type the app name correctly. We have another ticket to work on monorepo structure of Github Actions after integrating backend. See #285. The infrastructure for the api doesn't exist yet, so adding api
as a choice to deploy would fail for that reason.
9a8fe3a
to
31917b6
Compare
f0b6adf
to
e17a3ff
Compare
e17a3ff
to
9fbfd1a
Compare
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, defer to your team on this, no objections from me.
i probably won't be paramterizing/adding a flag to infra_test in the template repo but i don't have an issue with you doing it here
updates look good! |
Summary
Fixes #406
Time to review: 5 mins
Changes proposed
APP_NAME
in makefileAPP_NAME
to all relevant make commandscd-frontend.yml
that callsdeploy.yml
Test workflow dispatch: https://github.com/HHS/grants-equity/actions/runs/5957648324
On PR
Dispatch workflow
cmd:
gh workflow run cd-frontend.yml --ref daphnegold/issue-406-build-publish-fix --app-name frontend
Vuln scans
https://github.com/HHS/grants-equity/actions/runs/5967002978?pr=407
end-to-end infra tests
https://github.com/HHS/grants-equity/actions/runs/5968825293/job/16193471947?pr=407