Skip to content

Merge pull request #395 from T0biii/T0biii-patch-1 #144

Merge pull request #395 from T0biii/T0biii-patch-1

Merge pull request #395 from T0biii/T0biii-patch-1 #144

Workflow file for this run

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 }}