27 lines
649 B
YAML
27 lines
649 B
YAML
name: www2.threefold_io
|
|
on:
|
|
push:
|
|
branches: [ development ]
|
|
|
|
jobs:
|
|
job_one:
|
|
name: Deploy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: pushing latest change on www2.threefold.io
|
|
uses: appleboy/ssh-action@master
|
|
with:
|
|
host: www2.threefold.io
|
|
username: root
|
|
key: ${{ secrets.TF_SECRET }}
|
|
port: 22
|
|
script: |
|
|
cd /opt/www_threefold_io/
|
|
git log -1
|
|
git restore config.toml
|
|
git restore static/css/index.css
|
|
git pull
|
|
sed -i "s/https:\/\/www.threefold.io/https:\/\/www2.threefold.io/g" config.toml
|
|
./build.sh
|
|
|