Skip to content

Commit

Permalink
dynamic holodeck ci instance name
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Dec 11, 2024
1 parent 9fe2c15 commit c942f38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ jobs:
driver_branch_json="${{ needs.set-driver-version-matrix.outputs.driver_branch }}"
DRIVER_BRANCHES=($(echo "$driver_branch_json" | jq -r '.[]'))
echo "DRIVER_BRANCHES=${DRIVER_BRANCHES[*]}" >> $GITHUB_ENV
echo "LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')" >> $GITHUB_ENV
REPO_FULL_NAME="${{ github.event.pull_request.head.repo.full_name }}" >> $GITHUB_ENV
REPO_NAME="${{ github.repository }}" >> $GITHUB_ENV
BRANCH_NAME=${{ github.head_ref }} >> $GITHUB_ENV
GITHUB_ACTOR="${{ github.actor }}" >> $GITHUB_ENV
- name: Set up Holodeck
Expand All @@ -321,7 +321,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SSH_KEY: ${{ secrets.AWS_SSH_KEY }}
DIST: ${{ env.DIST }}
INSTANCE_NAME: ${{ env.REPO_FULL_NAME }}-${{ env.GITHUB_ACTOR }}-${{ env.LOWERCASE_REPO_OWNER }}-${{ env.COMMIT_SHORT_SHA }}
INSTANCE_NAME: ${{ env.REPO_NAME }}-${{ env.BRANCH_NAME }}-${{ env.GITHUB_ACTOR }}-${{ env.COMMIT_SHORT_SHA }}
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion tests/holodeck_ubuntu24.04.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: holodeck.nvidia.com/v1alpha1
kind: Environment
metadata:
name: HOLODECK_NAME
name: INSTANCE_NAME
description: "end-to-end test infrastructure"
spec:
provider: aws
Expand Down

0 comments on commit c942f38

Please sign in to comment.