Skip to content

Commit cc9cc0c

Browse files
authored
Bugfix - Allow PR to run agains repo secrets (#37)
1 parent 7c43481 commit cc9cc0c

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

.github/workflows/on-pr.yaml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,19 @@ jobs:
2525
with:
2626
go-version: '1.23.4'
2727

28-
- name: Login to NGC Container registry
29-
uses: docker/login-action@v3
30-
with:
31-
registry: nvcr.io
32-
username: $oauthtoken
33-
password: ${{ secrets.NGC_API_KEY }}
34-
3528
- name: Set up Docker Buildx
3629
uses: docker/setup-buildx-action@v3
3730

38-
- name: Set up helm
39-
env:
40-
NGC_API_KEY: ${{ secrets.NGC_API_KEY }}
41-
run: |
42-
helm repo add nvstaging https://helm.ngc.nvidia.com/nvstaging/runai --username=\$oauthtoken --password=$NGC_API_KEY
43-
helm plugin install https://github.com/chartmuseum/helm-push
44-
4531
- name: Run validation
4632
run: make validate
4733

4834
- name: Run tests
4935
run: make test
5036

5137
- name: Docker build & push
52-
run: make build DOCKER_BUILD_PLATFORM=linux/amd64,linux/arm64 DOCKER_REPO_BASE=${{ env.DOCKER_REGISTRY }} VERSION=$PACKAGE_VERSION DOCKER_BUILDX_ADDITIONAL_ARGS=--push
38+
run: make build DOCKER_BUILD_PLATFORM=linux/amd64,linux/arm64 DOCKER_REPO_BASE=${{ env.DOCKER_REGISTRY }} VERSION=$PACKAGE_VERSION
5339

5440
- name: Build helm chart
5541
run: |
5642
sed -i 's#registry/local/kai-scheduler#${{ env.DOCKER_REGISTRY }}#' deployments/kai-scheduler/values.yaml
57-
helm package ./deployments/kai-scheduler -d ./charts --app-version $PACKAGE_VERSION --version $PACKAGE_VERSION
58-
59-
- name: Upload helm chart as an artifact
60-
uses: actions/upload-artifact@v4
61-
with:
62-
name: helm-chart
63-
path: ./charts/*.tgz
64-
65-
- name: Upload helm chart to NGC
66-
run: |
67-
helm cm-push ./charts/kai-scheduler-$PACKAGE_VERSION.tgz nvstaging
43+
helm package ./deployments/kai-scheduler -d ./charts --app-version $PACKAGE_VERSION --version $PACKAGE_VERSION

0 commit comments

Comments
 (0)