File tree Expand file tree Collapse file tree 4 files changed +5
-24
lines changed Expand file tree Collapse file tree 4 files changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: time-tracker-ui-cd-stage
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - TT-513-Create-CI/CD-pipeline-in-timer-tracker-ui-to-deploy-changes-for-both-environments
5
+ tags :
6
+ - ' v*.*.* '
7
7
8
8
jobs :
9
9
cd :
Original file line number Diff line number Diff line change 78
78
- name : Terraform Plan Stage
79
79
id : plan-stage
80
80
if : github.event_name == 'pull_request'
81
- run : terraform plan -var-file=${{ env.TF_WORKSPACE }}.tfvars -no-color
81
+ run : terraform plan -var-file=${{ env.TF_WORKSPACE }}.tfvars -var image_tag=latest - no-color
82
82
continue-on-error : true
83
83
working-directory : ./${{ env.WORKING_DIR }}
84
84
env :
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ test: ## Run all tests on docker container timetracker_ui at the CLI.
45
45
46
46
.PHONY : testdev
47
47
testdev : # # Run all tests on docker container timetracker_ui at the Dev
48
- docker-compose -f docker-compose.dev.yml --env-file ./.env up -d
48
+ docker-compose -f docker-compose.yml -f docker-compose. dev.yml --env-file ./.env up -d
49
49
docker exec -it timetracker_ui bash -c " npm run test"
50
50
51
51
.PHONY : publish
Original file line number Diff line number Diff line change 1
1
version : ' 3.9'
2
2
services :
3
3
time-tracker-ui :
4
- container_name : timetracker_ui
5
- image : timetracker_ui
6
- build :
7
- target : development
8
- context : .
9
- dockerfile : ./Dockerfile
10
- ports :
11
- - 4200:4200
12
- - 9876:9876
13
- environment :
14
- CHROME_BIN : /opt/google/chrome/google-chrome
15
- AUTHORITY : ${AUTHORITY}
16
- CLIENT_ID : ${CLIENT_ID}
17
- SCOPES : ${SCOPES}
18
- STACK_EXCHANGE_ID : ${STACK_EXCHANGE_ID}
19
- STACK_EXCHANGE_ACCESS_TOKEN : ${STACK_EXCHANGE_ACCESS_TOKEN}
20
- AZURE_APP_CONFIGURATION_CONNECTION_STRING : ${AZURE_APP_CONFIGURATION_CONNECTION_STRING}
21
- AUTHORITY_JSON : ${AUTHORITY_JSON}
22
- CLIENT_ID_JSON : ${CLIENT_ID_JSON}
23
- SCOPES_JSON : ${SCOPES_JSON}
4
+ user : root
24
5
volumes :
25
6
- ./src:/home/timetracker/time-tracker-ui/src/
26
7
- ./scripts:/home/timetracker/time-tracker-ui/scripts/
You can’t perform that action at this time.
0 commit comments