Merge pull request #395 from T0biii/T0biii-patch-1 #144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |