Skip to content

Commit d4471c0

Browse files
authored
add missing tag suffix for gpu health monitor images (#93)
1 parent d01f48d commit d4471c0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/actions/publish-container/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ inputs:
4242
container_name:
4343
description: 'Container image being pushed'
4444
required: true
45+
tag_suffix:
46+
description: 'Optional tag that has to be appended to the image tag'
47+
default: ''
4548

4649
runs:
4750
using: 'composite'
@@ -79,7 +82,7 @@ runs:
7982
run: |
8083
${{ inputs.make_command }}
8184
82-
DIGEST="$(crane digest ${{ inputs.nvcr_container_repo }}/${{ inputs.container_org }}/${{ inputs.container_name }}:${{ inputs.safe_ref_name }})"
85+
DIGEST="$(crane digest ${{ inputs.nvcr_container_repo }}/${{ inputs.container_org }}/${{ inputs.container_name }}:${{ inputs.safe_ref_name }}${{ inputs.tag_suffix }})"
8386
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"
8487
echo "name=${{ inputs.nvcr_container_repo }}/${{ inputs.container_org }}/${{ inputs.container_name }}" >> "$GITHUB_OUTPUT"
8588

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ jobs:
9494
- component: gpu-health-monitor-dcgm3
9595
make_command: 'make -C health-monitors/gpu-health-monitor docker-publish-dcgm3'
9696
container_name: 'nvsentinel-gpu-health-monitor'
97+
tag_suffix: '-dcgm-3.x'
9798
- component: gpu-health-monitor-dcgm4
9899
make_command: 'make -C health-monitors/gpu-health-monitor docker-publish-dcgm4'
99100
container_name: 'nvsentinel-gpu-health-monitor'
101+
tag_suffix: '-dcgm-4.x'
100102
- component: syslog-health-monitor
101103
make_command: 'make -C health-monitors/syslog-health-monitor docker-publish'
102104
container_name: 'nvsentinel-syslog-health-monitor'

0 commit comments

Comments
 (0)