Skip to content

Merge pull request #10 from hypersign-protocol/CD #1

Merge pull request #10 from hypersign-protocol/CD

Merge pull request #10 from hypersign-protocol/CD #1

name: Vault Service Build Workflow
on:
push:
branches:
- "master"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: code checkout
uses: actions/checkout@v2
- name: install gcloud cli tools
uses: google-github-actions/setup-gcloud@v1
with:
project_id: ${{secrets.GOOGLE_PROJECT_ID}}
service_account_key: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}}
export_default_credentials: true
- name: build and push the docker image
env:
GOOGLE_PROJECT_ID: ${{secrets.GOOGLE_PROJECT_ID}}
run:
gcloud auth configure docker asia-south1-docker.pkg.dev
docker build -t asia-south1-docker.pkg.dev/$GOOGLE_PROJECT_ID/hypersign-image-repository/hypersign-vault-service:latest .
docker push asia-south1-docker.pkg.dev/$GOOGLE_PROJECT_ID/hypersign-image-repository/hypersign-vault-service:latest