Skip to content

To trigger refactored workflow #53

To trigger refactored workflow

To trigger refactored workflow #53

Workflow file for this run

name: Release Wave
on:
push:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: "1.0.0"
TAG: "v1.0.0"
jobs:
release:
name: Release Wave
runs-on: ubuntu-20.04
outputs:
build-version: ${{ env.VERSION }}
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GIT_TOKEN }}
- name: Publish apps for Cloud
run: make build-apps
env:
HAC_S3_BUCKET : ${{ secrets.HAC_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_WEST_REGION }}
- name: LS
run: |
ls
pwd
ls py/
ls py/tmp/
- name: Download H2O CLI
working-directory: ./py/tmp/tour/
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: ./py/tmp/tour/
run: chmod +x .bin/h2o
- name: Make air-gapped bundle
working-directory: ./py/tmp/tour/
run: |
.bin/h2o bundle \
--docker-base-image 524466471676.dkr.ecr.us-east-1.amazonaws.com/q8s/launcher:v0.31.0-310 \
--docker-use-buildkit \
--generate-helm-charts \
--helm-chart-version ${{ env.VERSION }} \
--helm-chart-name tour \
--helm-app-bundle-image-repo 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/tour-bundle \
--helm-app-runtime-image-repo 524466471676.dkr.ecr.us-east-1.amazonaws.com/h2oai/tour \
--generate-dockerfile
- uses: actions/upload-artifact@v3
with:
name: wave-bundle
path: |
./py/tmp/tour/*.Dockerfile
./py/tmp/tour/*.wave
- uses: actions/upload-artifact@v3
with:
name: wave-bundle-helm
path: py/tmp/tour/helm/
build-and-publish:
needs: release
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.release.outputs.build-version }}
bundle-artifact: wave-bundle
wave-app-name: tour