Skip to content

Commit fa9376e

Browse files
committed
Update deployment workflows to enhance recordprocessor image tagging
- Modified the logic for setting the `TF_VAR_recordprocessor_image_tag` environment variable to include the `sub_environment` in the image tag format. - This change improves the clarity and traceability of Docker image versions during deployment.
1 parent dc8d021 commit fa9376e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy-backend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
needs: build-and-push-recordprocessor
119119
runs-on: ubuntu-latest
120120
env:
121-
TF_VAR_recordprocessor_image_tag: ${{ inputs.build_recordprocessor_image && github.sha || 'latest' }}
121+
TF_VAR_recordprocessor_image_tag: ${{ inputs.build_recordprocessor_image && format('{0}-{1}', inputs.sub_environment, github.sha) || 'latest' }}
122122
environment:
123123
name: ${{ inputs.environment }}
124124
steps:
@@ -160,7 +160,7 @@ jobs:
160160
needs: terraform-plan
161161
runs-on: ubuntu-latest
162162
env:
163-
TF_VAR_recordprocessor_image_tag: ${{ inputs.build_recordprocessor_image && github.sha || 'latest' }}
163+
TF_VAR_recordprocessor_image_tag: ${{ inputs.build_recordprocessor_image && format('{0}-{1}', inputs.sub_environment, github.sha) || 'latest' }}
164164
environment:
165165
name: ${{ inputs.environment }}
166166
steps:

0 commit comments

Comments
 (0)