This commit is contained in:
@@ -38,14 +38,14 @@ steps:
|
|||||||
port: 22025
|
port: 22025
|
||||||
key:
|
key:
|
||||||
from_secret: DOCKER_SSH_KEY
|
from_secret: DOCKER_SSH_KEY
|
||||||
envs: [ DOTENV_FILE, GIT_CREDENTIAL ]
|
envs: [ DOTENV_FILE, DOCKER_USERNAME, CICD_TOKEN ]
|
||||||
script:
|
script:
|
||||||
- echo "Cloning with $GIT_CREDENTIAL"
|
- echo -e "machine git.iamninja.ru\nlogin $DOCKER_USERNAME\npassword $CICD_TOKEN" > ~/.netrc
|
||||||
|
- chmod 600 ~/.netrc
|
||||||
- rm -rf /home/iamninja/pomodoro_tg_bot
|
- rm -rf /home/iamninja/pomodoro_tg_bot
|
||||||
- git clone https://$GIT_CREDENTIAL@git.iamninja.ru/iamninja/pomodoro_tg_bot.git /home/iamninja/pomodoro_tg_bot
|
- git clone https://git.iamninja.ru/iamninja/pomodoro_tg_bot.git /home/iamninja/pomodoro_tg_bot
|
||||||
- cd /home/iamninja/pomodoro_tg_bot
|
- cd /home/iamninja/pomodoro_tg_bot
|
||||||
- echo "$DOTENV_FILE" > .env
|
- echo "$DOTENV_FILE" > .env
|
||||||
- git pull origin main
|
|
||||||
- docker compose pull
|
- docker compose pull
|
||||||
- docker compose up -d
|
- docker compose up -d
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user