Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feat/issue-2163' into feat/issue…
Browse files Browse the repository at this point in the history
…-2180
  • Loading branch information
sulhicader committed Jan 31, 2024
2 parents 9b5f402 + 1ad2d02 commit a112848
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 251 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/helm-release-university.yaml

This file was deleted.

66 changes: 62 additions & 4 deletions .github/workflows/publish-university.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,66 @@ jobs:
packages_dir: university/dist
password: ${{ secrets.PYPI_UNIVERSITY_TOKEN }}

bundle_generator:
name: Bundle and Publish
uses: ./.github/workflows/wave-university.yaml
with:
create-bundle:
name: Create Wave Bundle
runs-on: ubuntu-latest

outputs:
build-version: ${{ env.VERSION }}

steps:
- uses: actions/checkout@v3

- name: Download H2O CLI
working-directory: ./university
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

- name: Change permissions
working-directory: ./university
run: chmod +x .bin/h2o

- name: Set version
working-directory: ./university
run: sed -i -r -e "s/\{\{VERSION\}\}/${{ env.VERSION }}/g" app.toml

- name: Get App Version
id: get-build-version
run: |
echo "VERSION=${{ env.VERSION }}" >> "$GITHUB_OUTPUT"
- name: Make air-gapped bundle
working-directory: ./university
run: |
.bin/h2o bundle \
--docker-base-image 524466471676.dkr.ecr.us-east-1.amazonaws.com/q8s/launcher:v0.23.0-38 \
--docker-use-buildkit \
--generate-helm-charts \
--helm-chart-version ${{ env.VERSION }} \
--helm-chart-name university \
--helm-app-bundle-image-repo 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/university-bundle \
--helm-app-runtime-image-repo 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/university \
--generate-dockerfile
- uses: actions/upload-artifact@v3
with:
name: wave-bundle
path: |
./university/*.Dockerfile
./university/*.wave
- uses: actions/upload-artifact@v3
with:
name: wave-bundle-helm
path: university/helm/

build-and-publish:
needs: create-bundle
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

uses: ./.github/workflows/wave-bundle-docker-build-publish.yaml
with:
build-version: ${{ needs.create-bundle.outputs.build-version }}
bundle-artifact: wave-bundle
wave-app-name: university
92 changes: 0 additions & 92 deletions .github/workflows/wave-bundle-helm-release.yaml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/wave-bundle-university.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/wave-publish-university.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/wave-university.yaml

This file was deleted.

0 comments on commit a112848

Please sign in to comment.