Updated config.yml
This commit is contained in:
parent
8009936a64
commit
feb9080a3e
1 changed files with 15 additions and 15 deletions
|
|
@ -2,6 +2,20 @@
|
|||
# See: https://circleci.com/docs/2.0/configuration-reference
|
||||
version: 2.1
|
||||
|
||||
workflows:
|
||||
clone-and-run:
|
||||
jobs:
|
||||
- clone
|
||||
#filters:
|
||||
# branches:
|
||||
# only: main
|
||||
- deploy
|
||||
#requires:
|
||||
# - clone
|
||||
#filters:
|
||||
# branches:
|
||||
# only: main
|
||||
|
||||
jobs:
|
||||
clone:
|
||||
machine:
|
||||
|
|
@ -16,18 +30,4 @@ jobs:
|
|||
steps:
|
||||
- run:
|
||||
name: Deploy Over SSH
|
||||
command: ssh $SSH_USER@$SSH_HOST "cd /etc/BotYam && docker-compose up -d --build"
|
||||
|
||||
workflows:
|
||||
clone-and-run:
|
||||
jobs:
|
||||
- clone:
|
||||
filters:
|
||||
branches:
|
||||
only: main
|
||||
- deploy:
|
||||
requires:
|
||||
- clone
|
||||
filters:
|
||||
branches:
|
||||
only: main
|
||||
command: ssh $SSH_USER@$SSH_HOST "cd /etc/BotYam && docker-compose up -d --build"
|
||||
Loading…
Reference in a new issue