-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.32 KB
/
deploy-dev.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
44
45
name: '🏗 deploy_dev → rundgang-frontend-24.dev.medienhaus.udk-berlin.de'
on:
#push:
# branches: [ main ]
workflow_dispatch:
inputs:
ref:
description: The branch, tag or SHA to checkout
required: true
default: 'main'
jobs:
deploy_dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{github.event.inputs.ref}}
- name: Sync files to remote host
uses: up9cloud/[email protected]
env:
HOST: dev.medienhaus.udk-berlin.de
KEY: ${{secrets.SSH_DEV_MEDIENHAUS_UDK_BERLIN_DE}}
TARGET: /opt/rundgang-frontend-24/
VERBOSE: true
USER: root
PORT: 22
ARGS: --recursive --update --delete --compress --exclude=/.env --exclude=/.git/ --exclude=/public/fonts/
SSH_ARGS: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
SOURCE: .
- name: Restart rundgang-frontend-24 service
uses: fifsky/[email protected]
with:
command: |
cd /opt/rundgang-frontend-24/
npm clean-install
npm run build
systemctl restart rundgang-frontend-24.service
host: dev.medienhaus.udk-berlin.de
user: root
key: ${{secrets.SSH_DEV_MEDIENHAUS_UDK_BERLIN_DE}}