Skip to content

Commit

Permalink
Fix bundle generation
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
  • Loading branch information
ArangoGutierrez committed Aug 19, 2024
1 parent d63cd37 commit 9760758
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,13 @@ jobs:
echo "PUSH_ON_BUILD=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
echo "BUILD_MULTI_ARCH_IMAGES=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
- name: Extract branch name for push events
if: github.event_name == 'push'
id: extract_branch
run: |
BRANCH=${GITHUB_REF#refs/heads/}
BRANCH_NAME=${GITHUB_REF#refs/heads/}
BRANCH="bundle-latest"
if [[ "$BRANCH_NAME" == "main" || "$BRANCH_NAME" == "release-"* ]]; then
BRANCH="bundle-latest-${BRANCH_NAME}"
fi
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -119,8 +122,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
env:
BUNDLE_IMAGE_NAME: ghcr.io/${LOWERCASE_REPO_OWNER}/k8s-nim-operator
BUNDLE_IMAGE: ghcr.io/${LOWERCASE_REPO_OWNER}/k8s-nim-operator:bundle-lastest-${{ github.ref }}
BUNDLE_IMAGE_NAME: ghcr.io/nvidia/k8s-nim-operator
BUNDLE_IMAGE: ghcr.io/nvidia/k8s-nim-operator:${BRANCH}
VERSION: '' # Until we cut a release, Version will be null
run: |
echo "${VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/infra/vsphere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ spec:
kubernetes:
install: true
installer: kubeadm
version: v1.20.3
version: v1.30.3

0 comments on commit 9760758

Please sign in to comment.