-
-
Notifications
You must be signed in to change notification settings - Fork 40
33 lines (32 loc) · 959 Bytes
/
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
name: DEPLOY
on:
push:
branches:
- main
jobs:
deploy:
if: github.repository_owner == 'freifunkMUC'
strategy:
fail-fast: false
matrix:
target: [webfrontend03, webfrontend04, webfrontend05, webfrontend06]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Use GitHub Actions' cache to shorten build times and decrease load on servers
- uses: actions/[email protected]
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: lemonarc/[email protected]
- name: rsync deployments
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: _site
remote_path: /srv/www/ffmuc.net/
remote_host: ${{ matrix.target }}.ext.ffmuc.net
remote_user: deploy-ffmuc
remote_key: ${{ secrets.DEPLOY_KEY }}