forked from Cross-Lab-Project/crosslab
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.25 KB
/
deploy.yml
File metadata and controls
42 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy
concurrency:
group: development_environment
cancel-in-progress: true
on:
workflow_run:
workflows: ["Build and Publish Device Service","Build and Publish Experiment Service","Build and Publish Federation Service","Build and Publish Auth Service","Build and Publish Gateway Service","Build and Publish Update Service"]
types:
- completed
workflow_dispatch:
push:
branches:
- main
paths:
- "deploy/docker-compose/**"
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: development
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Checkout
uses: actions/checkout@v3
- name: Run deploy.sh
run: ./deploy/docker-compose/deploy_goldi.sh
env:
DEPLOY_SERVER: ${{ secrets.DEPLOY_SERVER }}
DEPLOY_DIR: ${{ secrets.DEPLOY_DIR }}
EMAIL: ${{ secrets.EMAIL }}
DOMAIN: ${{ secrets.DOMAIN }}
DOZZLE_USERNAME: ${{ secrets.DOZZLE_USERNAME }}
DOZZLE_PASSWORD: ${{ secrets.DOZZLE_PASSWORD }}
VPN_PEERS: ${{ secrets.VPN_PEERS }}
VPN_KEY: ${{ secrets.VPN_KEY }}