Compare commits

...

8 commits

Author SHA1 Message Date
Lucy Joshua
f299b19bab Updated config.yml 2023-02-25 01:58:53 +02:00
Lucy Joshua
5cab8f6fa7 Updated config.yml 2023-02-25 01:49:50 +02:00
Lucy Joshua
2245bcdef9 Updated config.yml 2023-02-25 01:41:19 +02:00
Lucy Joshua
5e9e3bc7c2 Updated config.yml 2023-02-25 01:35:07 +02:00
Lucy Joshua
feb9080a3e Updated config.yml 2023-02-25 01:29:04 +02:00
Lucy Joshua
8009936a64 Updated config.yml 2023-02-25 01:24:15 +02:00
Lucy Joshua
09af134de2 Updated config.yml 2023-02-25 01:20:57 +02:00
Lucy Joshua
f9087bc36c Add .circleci/config.yml 2023-02-25 00:29:48 +02:00

43
.circleci/config.yml Normal file
View file

@ -0,0 +1,43 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# 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:
image: "ubuntu-2004:current"
steps:
- add_ssh_keys:
fingerprints:
- "b7:39:6c:c8:a1:24:72:26:e6:a8:d1:c6:0d:24:82:a6"
- run:
name: Clone
command: |
echo $SSH_KEY > pkey
ssh -i pkey $SSH_USER@$SSH_HOST "cd /etc/BotYam && gh repo sync"
deploy:
machine:
image: "ubuntu-2004:current"
steps:
- add_ssh_keys:
fingerprints:
- "b7:39:6c:c8:a1:24:72:26:e6:a8:d1:c6:0d:24:82:a6"
- run:
name: Deploy Over SSH
command: |
echo $SSH_KEY > pkey
ssh -i pkey $SSH_USER@$SSH_HOST "cd /etc/BotYam && docker-compose up -d --build"