diff --git a/.circleci/config.yml b/.circleci/config.yml index 65d0b88..7a5f44e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 \ No newline at end of file + command: ssh $SSH_USER@$SSH_HOST "cd /etc/BotYam && docker-compose up -d --build" \ No newline at end of file