Updated config.yml
This commit is contained in:
parent
09af134de2
commit
8009936a64
1 changed files with 25 additions and 25 deletions
|
|
@ -3,31 +3,31 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
clone:
|
clone:
|
||||||
machine:
|
machine:
|
||||||
|
image: "ubuntu-2004:current"
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Clone
|
||||||
|
command: ssh $SSH_USER@$SSH_HOST "cd /etc/BotYam && gh repo sync"
|
||||||
|
deploy:
|
||||||
|
machine:
|
||||||
image: "ubuntu-2004:current"
|
image: "ubuntu-2004:current"
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: Clone
|
name: Deploy Over SSH
|
||||||
command: ssh $SSH_USER@$SSH_HOST "cd /etc/BotYam && gh repo sync"
|
command: ssh $SSH_USER@$SSH_HOST "cd /etc/BotYam && docker-compose up -d --build"
|
||||||
deploy:
|
|
||||||
machine:
|
|
||||||
image: "ubuntu-2004:current"
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
name: Deploy Over SSH
|
|
||||||
command: ssh $SSH_USER@$SSH_HOST "cd /etc/BotYam && docker-compose up -d --build"
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
build-and-deploy:
|
clone-and-run:
|
||||||
jobs:
|
jobs:
|
||||||
- clone:
|
- clone:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: main
|
only: main
|
||||||
- deploy:
|
- deploy:
|
||||||
requires:
|
requires:
|
||||||
- clone
|
- clone
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: main
|
only: main
|
||||||
Loading…
Reference in a new issue