-
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
Enhancement/tf smart variables #57
Conversation
type = string | ||
default = "main" | ||
description = "Branch name to deploy" | ||
} |
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.
Keep branch in tf variable because the deploy.sh script need this
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.
I don't understand, I thought the variables for deploy.sh should go in the env.json file ?
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.
true! but for this you need to add them into tfvars.json
and remove TF_VAR_branch
and TF_VAR_app
vars
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.
true I fix this
type = string | ||
default = "latest" | ||
description = "Version to deploy" | ||
} |
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.
same for app_version
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.
same as above
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.
.
@@ -35,9 +35,9 @@ jobs: | |||
steps: | |||
- uses: actions/checkout@v2 | |||
- name: Build docker image for tests | |||
run: docker build --target test -t basegun-back:tests backend/ | |||
run: docker build --target test --build-arg VERSION=1.0 -t basegun-back:tests backend/ |
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?
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.
otherwise the VERSION variable is not defined. Now it's done at build time instead of putting it in the environment at runtime. I changed this a while ago. I forgot to update this test which explains why the CI failed in the previous commits
No description provided.