Skip to content

Commit 72a07bd

Browse files
committed
Handled review comments #2163
1 parent b43ef51 commit 72a07bd

File tree

1 file changed

+41
-55
lines changed

1 file changed

+41
-55
lines changed

.github/workflows/publish-university.yml

+41-55
Original file line numberDiff line numberDiff line change
@@ -8,56 +8,54 @@ env:
88
VERSION: "1.0.1"
99

1010
jobs:
11-
12-
1311
airgapped:
14-
name: Create Wave Bundle
15-
runs-on: ubuntu-latest
16-
17-
steps:
18-
- uses: actions/checkout@v3
19-
20-
- name: Download H2O CLI
21-
working-directory: ./university
22-
run: mkdir -p .bin && curl -o .bin/h2o https://h2oai-cloud-release.s3.amazonaws.com/releases/ai/h2o/h2o-cloud/latest/cli/linux-amd64/h2o
12+
name: Create Wave Bundle
13+
runs-on: ubuntu-latest
2314

24-
- name: Change permissions
25-
working-directory: ./university
26-
run: chmod +x .bin/h2o
15+
steps:
16+
- uses: actions/checkout@v3
2717

28-
- name: Set version
29-
working-directory: ./university
30-
run: sed -i -r -e "s/\{\{VERSION\}\}/${{ env.VERSION }}/g" app.toml
18+
- name: Download H2O CLI
19+
working-directory: ./university
20+
run: mkdir -p .bin && curl -o .bin/h2o https://h2oai-cloud-release.s3.amazonaws.com/releases/ai/h2o/h2o-cloud/latest/cli/linux-amd64/h2o
3121

32-
- name: Get App Version
33-
id: get-build-version
34-
run: |
35-
echo "VERSION=${{ env.VERSION }}" >> "$GITHUB_OUTPUT"
22+
- name: Change permissions
23+
working-directory: ./university
24+
run: chmod +x .bin/h2o
3625

37-
- name: Make air-gapped bundle
38-
working-directory: ./university
39-
run: |
40-
.bin/h2o bundle \
41-
--docker-base-image 524466471676.dkr.ecr.us-east-1.amazonaws.com/q8s/launcher:v0.23.0-38 \
42-
--docker-use-buildkit \
43-
--generate-helm-charts \
44-
--helm-chart-version ${{ env.VERSION }} \
45-
--helm-chart-name university \
46-
--helm-app-bundle-image-repo 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/university-bundle \
47-
--helm-app-runtime-image-repo 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/university \
48-
--generate-dockerfile
26+
- name: Set version
27+
working-directory: ./university
28+
run: sed -i -r -e "s/\{\{VERSION\}\}/${{ env.VERSION }}/g" app.toml
4929

50-
- uses: actions/upload-artifact@v3
51-
with:
52-
name: wave-bundle
53-
path: |
54-
./university/*.Dockerfile
55-
./university/*.wave
30+
- name: Get App Version
31+
id: get-build-version
32+
run: |
33+
echo "VERSION=${{ env.VERSION }}" >> "$GITHUB_OUTPUT"
5634
57-
- uses: actions/upload-artifact@v3
58-
with:
59-
name: wave-bundle-helm
60-
path: university/helm/
35+
- name: Make air-gapped bundle
36+
working-directory: ./university
37+
run: |
38+
.bin/h2o bundle \
39+
--docker-base-image 524466471676.dkr.ecr.us-east-1.amazonaws.com/q8s/launcher:v0.23.0-38 \
40+
--docker-use-buildkit \
41+
--generate-helm-charts \
42+
--helm-chart-version ${{ env.VERSION }} \
43+
--helm-chart-name university \
44+
--helm-app-bundle-image-repo 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/university-bundle \
45+
--helm-app-runtime-image-repo 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/university \
46+
--generate-dockerfile
47+
48+
- uses: actions/upload-artifact@v3
49+
with:
50+
name: wave-bundle
51+
path: |
52+
./university/*.Dockerfile
53+
./university/*.wave
54+
55+
- uses: actions/upload-artifact@v3
56+
with:
57+
name: wave-bundle-helm
58+
path: university/helm/
6159

6260
retrieve-metadata:
6361
runs-on: ubuntu-latest
@@ -69,15 +67,3 @@ jobs:
6967
id: get-build-version
7068
run: |
7169
echo "VERSION=${{ env.VERSION }}" >> "$GITHUB_OUTPUT"
72-
73-
build-and-publish:
74-
needs: retrieve-metadata
75-
permissions:
76-
id-token: write # This is required for requesting the JWT
77-
contents: read # This is required for actions/checkout
78-
79-
uses: ./.github/workflows/wave-bundle-docker-build-publish.yaml
80-
with:
81-
build-version: ${{ env.VERSION }}
82-
bundle-artifact: wave-bundle
83-
wave-app-name: university

0 commit comments

Comments
 (0)