landscape/.github/workflows/deploy-canary.yml

35 lines
1.1 KiB
YAML
Raw Normal View History

2023-01-04 21:17:54 +03:00
name: Deploy Landscape (canary)
on:
workflow_dispatch:
inputs:
tag:
type: string
required: false
description: Enter the tag to deploy
jobs:
deploy:
runs-on: ubuntu-latest
name: "Release to ~binnec-dozzod-marzod (canary)"
steps:
- uses: actions/checkout@v3
2023-01-31 21:45:43 +03:00
- id: 'auth'
uses: 'google-github-actions/auth@v1'
2023-01-04 21:17:54 +03:00
with:
2023-01-31 21:45:43 +03:00
credentials_json: '${{ secrets.JANEWAY_SERVICE_KEY }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- id: deploy-prep
name: Prep Deploy Script
2023-01-31 21:45:43 +03:00
run:
./.github/helpers/deploy.sh tloncorp/landscape landscape binnec-dozzod-marzod ${{ github.event.inputs.tag }}
- id: 'compute-ssh'
name: Deploy
uses: 'google-github-actions/ssh-compute@v0'
with:
project_id: mainnet
zone: 'us-west1-b'
user: 'urb'
instance_name: 'wannec-dozzod-marzod'
flags: '--verbosity=info'
ssh_private_key: '${{ secrets.TEST_KEY }}'
script: ${{ steps.deploy-prep.outputs.cmdfile }}