|
8 | 8 | VERSION: "1.0.1"
|
9 | 9 |
|
10 | 10 | jobs:
|
11 |
| - |
12 |
| - |
13 | 11 | 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 |
23 | 14 |
|
24 |
| - - name: Change permissions |
25 |
| - working-directory: ./university |
26 |
| - run: chmod +x .bin/h2o |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v3 |
27 | 17 |
|
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 |
31 | 21 |
|
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 |
36 | 25 |
|
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 |
49 | 29 |
|
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" |
56 | 34 |
|
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/ |
61 | 59 |
|
62 | 60 | retrieve-metadata:
|
63 | 61 | runs-on: ubuntu-latest
|
|
69 | 67 | id: get-build-version
|
70 | 68 | run: |
|
71 | 69 | 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