adding autodeployment
This commit is contained in:
parent
7359e82d58
commit
d17d839007
23
.github/workflows/tf_update.yml
vendored
Normal file
23
.github/workflows/tf_update.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: event2.ourworld.tf
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branch: [ development ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
job_one:
|
||||||
|
name: Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: pushing latest change on event2.ourworld.tf
|
||||||
|
uses: appleboy/ssh-action@master
|
||||||
|
with:
|
||||||
|
host: event2.ourworld.tf
|
||||||
|
username: webuser
|
||||||
|
key: ${{ secrets.TF_SECRET }}
|
||||||
|
port: 34022
|
||||||
|
script: |
|
||||||
|
cd /home/webuser/websites/www2/www_ourworld_ictc
|
||||||
|
git log -1
|
||||||
|
git pull
|
||||||
|
name=$(basename "$PWD")
|
||||||
|
if [ -z $(tmux list-sessions | grep $name | awk '{ print $1 }') ]; then echo tmux new-session -d -s $name 'bash run.sh' ; else tmux kill-session -t $name ; tmux new-session -d -s $name 'bash run.sh' ; fi
|
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
templates/tickets.html
|
||||||
|
static/css/index.css
|
||||||
|
www_ourworld_ictc
|
||||||
|
ticket
|
||||||
|
tailwindcss
|
Loading…
Reference in New Issue
Block a user