Skip to content

Merge pull request #1 from Vizia-Project/dev #5

Merge pull request #1 from Vizia-Project/dev

Merge pull request #1 from Vizia-Project/dev #5

name: Deploy history service to Google App Engine
on:
push:
paths:
- history-service/**
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Create vizia-sa.json file
working-directory: ./history-service
run: |
touch vizia-sa.json
echo "${{ secrets.VIZIA_SERVICE_ACCOUNT }}" >> vizia-sa.json
- name: Create app.yaml file
working-directory: ./history-service
run: |
touch app.yaml
echo "${{ secrets.HISTORY_APP_YAML }}" >> app.yaml
- name: Setup Node.js and yarn
uses: actions/setup-node@v2
with:
node-version: 20
- name: Install dependencies
run: npm ci
working-directory: ./history-service
- name: Google Cloud Auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Set up Cloud SDK
uses: "google-github-actions/setup-gcloud@v2"
- name: Deploy to Google App Engine
run: |
cd history-service
gcloud app deploy app.yaml --quiet