-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.11 KB
/
deploy.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Deploy to Liberation Staging
on:
push:
branches:
- main
jobs:
update_server:
runs-on: sh-jb-1
steps:
- uses: actions/checkout@v2
- name: Stop App
run: |
docker stop liberation
- name: Fetch Updates and Restart App
run: |
cd ~/Liberation
git pull
docker compose up -d --build
- name: Send Commit done Message
uses: tsickert/discord-webhook@v5.4.0
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
embed-title: Liberation Staging is now on commit `${{ github.sha }}`!
embed-description: |
Commit Message: ${{ github.event.head_commit.message }}
Author: ${{ github.triggering_actor }}
- name: Send Commit done Message on Roc testing server
uses: tsickert/discord-webhook@v5.4.0
with:
webhook-url: ${{ secrets.WEBHOOK_URL_ROC }}
embed-title: Liberation Staging is now on commit `${{ github.sha }}`!
embed-description: |
Commit Message: ${{ github.event.head_commit.message }}
Author: ${{ github.triggering_actor }}