Skip to content

Commit 15af506

Browse files
committed
fix: TT-513 test CI/CD pipeline
1 parent 4a60730 commit 15af506

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/workflows/time-tracker-ui-cd-prod.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: time-tracker-ui-cd-prod
22

33
on:
4-
release:
5-
types:
6-
- published
4+
push:
5+
branches:
6+
- TT-513-Create-CI/CD-pipeline-in-timer-tracker-ui-to-deploy-changes-for-both-environments
77

88
jobs:
99
cd:
@@ -30,11 +30,11 @@ jobs:
3030
creds: ${{ secrets.AZURE_CREDENTIALS }}
3131

3232
- name: Build the docker image
33-
run: make build
33+
run: build_prod
3434

3535
- name: Publish docker image to prod azure container registry
3636
run: |
37-
make login publish acr=timetrackerserviceprodregistry image_tag=$RELEASE_VERSION
37+
make login publish_prod acr=tt513registry image_tag=$RELEASE_VERSION
3838
- name: Setup terraform
3939
uses: hashicorp/setup-terraform@v1
4040

.github/workflows/time-tracker-ui-cd-stage.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ jobs:
2727
with:
2828
creds: ${{ secrets.AZURE_CREDENTIALS }}
2929
- name: Build the docker image
30-
run: make build
30+
run: make build_prod
3131
- name: Publish docker image to stage azure container registry
3232
run: |
33-
make login publish acr=tt513registry image_tag=$RELEASE_VERSION
34-
# - name: Setup terraform
35-
# uses: hashicorp/setup-terraform@v1
36-
# - name: Authenticate with the TF modules repository
37-
# uses: webfactory/[email protected]
38-
# with:
39-
# ssh-private-key: ${{ secrets.INFRA_TERRAFORM_MODULES_SSH_PRIV_KEY }}
40-
# - name: Terraform Init
41-
# working-directory: ${{ env.WORKING_DIR }}
42-
# run: terraform init
43-
# - name: Terraform Apply
44-
# working-directory: ${{ env.WORKING_DIR }}
45-
# run: terraform apply -lock=false -var-file="${{ env.TF_WORKSPACE }}.tfvars" -var "image_tag=$RELEASE_VERSION" -auto-approve
33+
make login publish_prod acr=tt513registry image_tag=$RELEASE_VERSION
34+
- name: Setup terraform
35+
uses: hashicorp/setup-terraform@v1
36+
- name: Authenticate with the TF modules repository
37+
uses: webfactory/[email protected]
38+
with:
39+
ssh-private-key: ${{ secrets.INFRA_TERRAFORM_MODULES_SSH_PRIV_KEY }}
40+
- name: Terraform Init
41+
working-directory: ${{ env.WORKING_DIR }}
42+
run: terraform init
43+
- name: Terraform Apply
44+
working-directory: ${{ env.WORKING_DIR }}
45+
run: terraform apply -lock=false -var-file="${{ env.TF_WORKSPACE }}.tfvars" -var "image_tag=$RELEASE_VERSION" -auto-approve

0 commit comments

Comments
 (0)