From 7bdcf334368d95af21c699e04d2052de2acb97bf Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Thu, 4 May 2023 17:31:03 +0530 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0c05e8a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Build and Push to Vorvan + +on: + schedule: + - cron: "0 4 * * *" + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - id: 'auth' + uses: google-github-actions/auth@v1 + with: + credentials_json: '${{ secrets.GCP_CRED_JSON }}' + - name: Configure Google Cloud SDK + uses: google-github-actions/setup-gcloud@v1 + - name: Configure Docker Client + run: |- + gcloud auth configure-docker --quiet #authenticate to gcr + - name: Docker Build Image + run: |- + docker build -t gcr.io/$GCLOUD_PROJECT/h2oai/h2o-llmstudio:nightly . + - name: Push to Vorvan + run: |- + docker push gcr.io/$GCLOUD_PROJECT/h2oai/h2o-llmstudio:nightly