-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (25 loc) · 1.03 KB
/
manual-live.yml
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
name: Manual live deploy
on:
workflow_dispatch
permissions: read-all
jobs:
Run:
runs-on: [self-hosted, daniel-server]
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The repository has been cloned to the runner."
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Generate .env from GitHub secrets
run: python env_json_to_dotenv.py SECRETS_CONTEXT
- name: Build and run tests 🧪
run: |
docker stop nycmesh-support-bot || true
docker rm nycmesh-support-bot || true
docker build -t nycmesh-support-bot .
docker run -d --name nycmesh-support-bot -v "$PWD/.env:/app/.env" --restart unless-stopped nycmesh-support-bot supportbot-server --channel-ids "C679UKBUK" --channel-ids "C045QM9TDMZ" --nn-property-id "XfBTK3QZ1S"