Skip to content

Commit f127663

Browse files
update image tags to use 'latest_waf' for Docker builds and deployments
1 parent aa7a26f commit f127663

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

.github/workflows/build-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
context: .
6363
file: ${{ inputs.dockerfile }}
6464
push: ${{ inputs.push }}
65-
cache-from: type=registry,ref=${{ inputs.new_registry }}/${{ inputs.app_name }}:${{ github.ref_name == 'main' && 'latest' || github.ref_name == 'dev' && 'dev' || github.ref_name == 'demo' && 'demo'|| github.ref_name == 'dependabotchanges' && 'dependabotchanges' || github.head_ref || github.ref_name }}
65+
cache-from: type=registry,ref=${{ inputs.new_registry }}/${{ inputs.app_name }}:${{ github.ref_name == 'main' && 'latest_waf' || github.ref_name == 'dev' && 'dev' || github.ref_name == 'demo' && 'demo'|| github.ref_name == 'dependabotchanges' && 'dependabotchanges' || github.head_ref || github.ref_name }}
6666
tags: |
67-
${{ inputs.new_registry }}/${{ inputs.app_name }}:${{ github.ref_name == 'main' && 'latest' || github.ref_name == 'dev' && 'dev' || github.ref_name == 'demo' && 'demo'|| github.ref_name == 'dependabotchanges' && 'dependabotchanges' || github.head_ref || 'default' }}
67+
${{ inputs.new_registry }}/${{ inputs.app_name }}:${{ github.ref_name == 'main' && 'latest_waf' || github.ref_name == 'dev' && 'dev' || github.ref_name == 'demo' && 'demo'|| github.ref_name == 'dependabotchanges' && 'dependabotchanges' || github.head_ref || 'default' }}
6868
${{ inputs.new_registry }}/${{ inputs.app_name }}:${{ steps.date.outputs.date }}_${{ github.run_number }}

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ jobs:
9090
id: set-image-tag
9191
run: |
9292
if [[ "${{ github.event_name }}" == "schedule" ]]; then
93-
echo "imageTag=latest" >> $GITHUB_ENV
94-
echo "::set-output name=imageTag::latest"
93+
echo "imageTag=latest_waf" >> $GITHUB_ENV
94+
echo "::set-output name=imageTag::latest_waf"
9595
elif [[ "${{ github.ref_name }}" == "main" ]]; then
96-
echo "imageTag=latest" >> $GITHUB_ENV
97-
echo "::set-output name=imageTag::latest"
96+
echo "imageTag=latest_waf" >> $GITHUB_ENV
97+
echo "::set-output name=imageTag::latest_waf"
9898
else
9999
echo "imageTag=${{ github.ref_name }}" >> $GITHUB_ENV
100100
echo "::set-output name=imageTag::${{ github.ref_name }}"

infra/main.bicep

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,10 @@ var queueName = 'doc-processing'
351351
var clientKey = '${uniqueString(guid(subscription().id, deployment().name))}${newGuidString}'
352352
var eventGridSystemTopicName = 'doc-processing'
353353
var baseUrl = 'https://raw.githubusercontent.com/Azure-Samples/chat-with-your-data-solution-accelerator/main/'
354-
var appversion = 'latest' // Update GIT deployment branch
354+
355+
@description('Optional. Image version tag to use.')
356+
param appversion string = 'latest_waf' // Update GIT deployment branch
357+
355358
var registryName = 'cwydcontainerreg' // Update Registry name
356359

357360
var openAIFunctionsSystemPrompt = '''You help employees to navigate only private information sources.

infra/main.parameters.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@
178178
},
179179
"existingLogAnalyticsWorkspaceId": {
180180
"value": "${AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID}"
181+
},
182+
"appversion": {
183+
"value": "${AZURE_IMAGE_TAG=latest_waf}"
181184
}
182185
}
183186
}

infra/main.waf.parameters.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@
208208
},
209209
"virtualMachineAdminPassword": {
210210
"value": "${AZURE_ENV_VM_ADMIN_PASSWORD}"
211+
},
212+
"appversion": {
213+
"value": "${AZURE_IMAGE_TAG=latest_waf}"
211214
}
212215
}
213216
}

0 commit comments

Comments
 (0)