Replies: 3 comments 8 replies
-
It seems these are release steps which are separate from the build of your app. I would say the steps need to be run in Gitlab CI. |
Beta Was this translation helpful? Give feedback.
2 replies
-
The main step that needs to occur for the client-side webapp is to do
codegen for the amplify config file (`aws-exports.js`). Currently, when I
push to github, `vercel.com` automatically takes my code and deploys it
using convenient branch-based urls. Is there a way to add a "hook"
somewhere else that would allow me to generate `aws-exports.js` and then
let vercel do the deployment?
If that is not currently possible then I'd like to strongly request that
feature.
These are the exact steps that we currently have and what we are hoping for:
**Current flow**:
1. Write code in a branch: some-feature.
2. Generate code on my local computer (aws-exports.js) and manually select
the `some-feature` aws environment
3. Push code to `some-feature` git branch and DO NOT include aws-exports in
.gitignore. DO include aws-exports.js in the pushed code.
5. Vercel automatically deploys the code to `some-feature` url.
6. When satisfied with the feature, change the aws environment on my local
computer and generate `aws-exports.js` in the prod environment
7. Push that code to master. (I can't merge the feature branch).
8. Vercel automatically deploys the code to `some-feature` url.
**Desired flow**:
1. Write code in a branch: some-feature.
2. Push code to `some-feature` github branch and DO ignore `aws-exports` in
.gitignore. DO NOT include `aws-exports.js` in the pushed code.
3. (the hook) My CI platform generates `aws-exports` for the `some-feature`
env
4. Vercel automatically deploys the code to `some-feature` url.
5. Merge the feature branch into master
6. (the hook) My CI platform generates `aws-exports` for the `prod` env
7. Vercel automatically deploys the code to `prod` url.
…On Wed, Apr 29, 2020 at 5:24 PM Willem Liu ***@***.***> wrote:
It seems these are release steps which are separate from the build of your
app. I would say the steps need to be run in Gitlab CI.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4199 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACSNE73TDP6FHF2SR5MVXRLRPCLIRANCNFSM4MUBPT3A>
.
|
Beta Was this translation helpful? Give feedback.
5 replies
-
has anyone figured this out? considering using amplify for the frontend as well as it doesn't seem there is a way to do this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current stack
Requirement
amplify env pull --env $ENV_NAME --appId some-app-id
amplify push
to deploy any infrastructure changes.amplify push
also does env specific code generation. This config file is used in the website and must be available before or created duringnext build
. This config file is in .gitignore must be generated from code, it can't be pushed to reposnow
to deploy the website.It's unclear where these steps can be added. First,
now
is pulling the code immediately after I push it. I don't see hownext build
can execute these steps and it is unclear to me where whether these steps should be placed intonow
config,next
config, yarn scripts, gitlab CI, etc.Any help or documentation would be really helpful in working through this.
Beta Was this translation helpful? Give feedback.
All reactions