File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments