Skip to content

Commit d7727e2

Browse files
committed
TT-513: Makes cd stage pipeline more readable
1 parent edb2b75 commit d7727e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,36 @@ jobs:
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v3
21+
2122
- name: Get the release_version
2223
run: |
2324
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2425
echo $RELEASE_VERSION
26+
2527
- name: Login to azure
2628
uses: Azure/login@v1
2729
with:
2830
creds: ${{ secrets.AZURE_CREDENTIALS }}
31+
2932
- name: Build the docker image
3033
run: make build
34+
3135
- name: Publish docker image to stage azure container registry
3236
run: |
3337
make login publish acr=timetrackerservicestageregistry image_tag=$RELEASE_VERSION
38+
3439
- name: Setup terraform
3540
uses: hashicorp/setup-terraform@v1
41+
3642
- name: Authenticate with the TF modules repository
3743
uses: webfactory/[email protected]
3844
with:
3945
ssh-private-key: ${{ secrets.INFRA_TERRAFORM_MODULES_SSH_PRIV_KEY }}
46+
4047
- name: Terraform Init
4148
working-directory: ${{ env.WORKING_DIR }}
4249
run: terraform init
50+
4351
- name: Terraform Apply
4452
working-directory: ${{ env.WORKING_DIR }}
4553
run: terraform apply -lock=false -var-file="${{ env.TF_WORKSPACE }}.tfvars" -var "image_tag=$RELEASE_VERSION" -auto-approve

0 commit comments

Comments
 (0)