-
Notifications
You must be signed in to change notification settings - Fork 1
https://ioetec.atlassian.net/browse/TT-656 #876
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
Closed
rodolfoIOET
wants to merge
49
commits into
master
from
TT-656-configure-time-tracker-ui-through-cd-pipeline-for-both-stage-and-prod
Closed
Changes from 30 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
79b26c9
adding additional settings
rodolfoIOET 1b9c874
fixing syntax
rodolfoIOET 50c58a4
fixing syntax v2
rodolfoIOET b679c5e
fixing syntax v3
rodolfoIOET 8a9cad1
fixing syntax v4
rodolfoIOET 1a4ddb7
fixing syntax v5
rodolfoIOET 0bf15bc
fixing syntax v6
rodolfoIOET e55a3b7
fixing syntax v7
rodolfoIOET b4f414e
Add -lock flag to avoid locks
sbateca 35e304e
create secrets.tfvars
rodolfoIOET d825c36
merge from master
rodolfoIOET 0daf904
secrets created in right folder
rodolfoIOET ed52721
locking false
rodolfoIOET 64d98ec
ci/cd only on push
rodolfoIOET ee1adc2
auto-load secrets in terraform plan
rodolfoIOET 3b5b7a4
locking true in terraform plan
rodolfoIOET 92635fb
try to run again
rodolfoIOET 87fb408
adding image_tag
rodolfoIOET 584951e
just trigger
rodolfoIOET 2b6255c
test_writting
rodolfoIOET 95365aa
test_test2
rodolfoIOET 62aa6be
Merge branch 'master' into TT-656-configure-time-tracker-ui-through-c…
rodolfoIOET 3883d52
adding script for creating secret file
rodolfoIOET 00b32f4
fix typ0
rodolfoIOET e4d39e8
adding quotes
rodolfoIOET dd64707
going to original
rodolfoIOET f1ba747
secrets are needed for test only
rodolfoIOET 47ebc88
adding commits
rodolfoIOET bcd7c9a
uncommenting based on fausto request
rodolfoIOET 654a756
fixing identifier
rodolfoIOET 61a9d09
Merge branch 'master' into TT-656-configure-time-tracker-ui-through-c…
rodolfoIOET c6591ef
deleting .env file, secrets are sent by terraform
rodolfoIOET ec026e3
fix tag name to latest
rodolfoIOET a3afc0b
fixing make file
rodolfoIOET c8e572a
injecting env files
rodolfoIOET 2e720a5
use STAGE env variables
rodolfoIOET 8434f59
adding CLIENT_URL(GOOGLE) and API_URL(target_backend) as env-vars
rodolfoIOET 1a9920e
additional settings not needed
rodolfoIOET 97b3d0a
additional settings not needed , back to version 13
rodolfoIOET 26c9fe2
additional settings not needed , back to version 13 without test
rodolfoIOET 452b6a3
passing as env-var
rodolfoIOET c1ad7a8
another approach
rodolfoIOET 74b9221
another approach V2
rodolfoIOET 06bb711
working in local prod
rodolfoIOET 755e056
fix substitution
rodolfoIOET 64b29b6
docker requires one argument
rodolfoIOET 5443de1
docker requires one argument v2
rodolfoIOET 4ed4c68
adding args and make file
rodolfoIOET 3f2fe61
adding support for timetracker pointing to v2
rodolfoIOET File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/python3 | ||
import sys | ||
from os.path import exists | ||
|
||
FILE_NAME = 'secret.auto.tfvars' | ||
|
||
|
||
def append_secret_to_file(key, value): | ||
with open(FILE_NAME, 'r') as file: | ||
text = file.readlines() | ||
with open(FILE_NAME, 'w') as file: | ||
text[-1] = f'"{key}" = "{value}"' | ||
file.writelines(text) | ||
file.write('\n}') | ||
|
||
|
||
if __name__ == '__main__': | ||
key = sys.argv[1] | ||
value = sys.argv[2] | ||
|
||
if not exists(FILE_NAME): | ||
with open(FILE_NAME, 'w') as file: | ||
file.write('additional_settings = {\n') | ||
file.write('}') | ||
append_secret_to_file(key, value) | ||
else: | ||
append_secret_to_file(key, value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ locals { | |
|
||
module "ui" { | ||
#source = "../../infra-terraform-modules/azure-app-service" | ||
source = "[email protected]:ioet/infra-terraform-modules.git//azure-app-service?ref=tags/v0.0.13" | ||
source = "[email protected]:ioet/infra-terraform-modules.git//azure-app-service?ref=tags/v0.0.14" | ||
app_service_name = local.service_name | ||
create_app_service_plan = local.create_app_service_plan | ||
docker_image_name = "${local.image_name}:${var.image_tag}" | ||
|
@@ -56,6 +56,7 @@ module "ui" { | |
service_plan_name = local.service_name | ||
service_plan_size = var.service_plan_size | ||
service_plan_tier = var.service_plan_tier | ||
additional_settings = var.additional_settings | ||
hostname = "ui" | ||
dns_zone_name = data.terraform_remote_state.service.outputs.subdomain | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.