1616 release :
1717 name : Release Wave
1818 runs-on : ubuntu-20.04
19+
20+ outputs :
21+ build-version : ${{ env.VERSION }}
22+
1923 steps :
2024 - uses : actions/checkout@v2
2125 with :
@@ -135,7 +139,7 @@ jobs:
135139
136140 - name : Build university
137141 run : make publish-university
138-
142+
139143 - name : Publish to PyPI - wave_university
140144 uses : pypa/gh-action-pypi-publish@master
141145 with :
@@ -153,3 +157,51 @@ jobs:
153157 with :
154158 packages_dir : py/h2o_lightwave_web/dist
155159 password : ${{ secrets.PYPI_LIGTHWAVE_WEB_TOKEN }}
160+
161+ - name : Download H2O CLI
162+ working-directory : ./py/tmp/tour/
163+ 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
164+
165+ - name : Change permissions
166+ working-directory : ./py/tmp/tour/
167+ run : chmod +x .bin/h2o
168+
169+ - name : Make air-gapped bundle
170+ working-directory : ./py/tmp/tour/
171+ run : |
172+ .bin/h2o bundle \
173+ --docker-base-image 524466471676.dkr.ecr.us-east-1.amazonaws.com/q8s/launcher:v0.31.0-310 \
174+ --docker-use-buildkit \
175+ --generate-helm-charts \
176+ --helm-chart-version ${{ env.VERSION }} \
177+ --helm-chart-name tour \
178+ --helm-app-bundle-image-repo 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/tour-bundle \
179+ --helm-app-runtime-image-repo 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/tour \
180+ --generate-dockerfile
181+
182+ - uses : actions/upload-artifact@v3
183+ with :
184+ name : wave-bundle
185+ path : |
186+ ./py/tmp/tour/*.Dockerfile
187+ ./py/tmp/tour/*.wave
188+
189+ - uses : actions/upload-artifact@v3
190+ with :
191+ name : wave-bundle-helm
192+ path : py/tmp/tour/helm/
193+
194+ - name : Remove files in tmp folder
195+ run : make remove-build-apps-directory
196+
197+ build-and-publish :
198+ needs : release
199+ permissions :
200+ id-token : write # This is required for requesting the JWT
201+ contents : read # This is required for actions/checkout
202+
203+ uses : ./.github/workflows/wave-bundle-docker-build-publish.yaml
204+ with :
205+ build-version : ${{ needs.release.outputs.build-version }}
206+ bundle-artifact : wave-bundle
207+ wave-app-name : tour
0 commit comments