Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ jobs:
- name: Calculate build vars
id: vars
run: |
echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
COMMIT_SHORT_SHA="${GITHUB_SHA:0:8}"
echo "COMMIT_SHORT_SHA=${COMMIT_SHORT_SHA}" >> $GITHUB_ENV
if [[ "${{ github.ref_type }}" == "tag" ]]; then
echo "VERSION_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
else
echo "VERSION_TAG=${COMMIT_SHORT_SHA}" >> $GITHUB_ENV
fi

echo "LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')" >> $GITHUB_ENV

GENERATE_ARTIFACTS="false"
Expand All @@ -98,7 +105,7 @@ jobs:
- name: Build Manifest
if: ${{ env.GENERATE_ARTIFACTS == 'true' }}
env:
MULTIARCH_IMAGE: ghcr.io/${{ env.LOWERCASE_REPO_OWNER }}/nvidia-sandbox-device-plugin:${{ env.COMMIT_SHORT_SHA }}
MULTIARCH_IMAGE: ghcr.io/${{ env.LOWERCASE_REPO_OWNER }}/nvidia-sandbox-device-plugin:${{ env.VERSION_TAG }}
run: |
docker buildx imagetools create \
--tag ${MULTIARCH_IMAGE} \
Expand Down