Create test.yml

This commit is contained in:
Lakindu Akash 2023-05-04 17:31:03 +05:30 committed by GitHub
parent 0b4960dee7
commit 7bdcf33436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/test.yml vendored Normal file
View File

@ -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