summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorl3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-03-14 14:29:41 +0200
committerl3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-03-14 14:29:41 +0200
commite6e20a2691003597d6f482dc52b719f7d63b61cc (patch)
tree3c89aad64ba660cbc5d9eb934a6920c0e9ca28fe
parent78e79f635377cfb72663ac339ec5d28de77ab6b2 (diff)
fix gitlab-ci x6
-rw-r--r--.gitlab-ci.yml9
1 files changed, 2 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b730324..23125e7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,14 +19,9 @@ deploy:
stage: deploy
image: docker:24.0.5
before_script:
- - mkdir -p ~/.ssh
- - cp /home/arkadii/.ssh/gitlab_deploy ~/.ssh/id_ed25519
- - chmod 600 ~/.ssh/id_ed25519
- - eval "$(ssh-agent -s)"
- - ssh-add ~/.ssh/id_ed25519
- - ssh-keyscan -H 192.168.0.171 >> ~/.ssh/known_hosts
+ - apt-get update && apt-get install -y sshpass
script:
- - ssh arkadii@192.168.0.171 "
+ - sshpass -p "$SSH_PASSWORD" ssh -o StrictHostKeyChecking=no arkadii@192.168.0.171 "
docker stop $IMAGE_NAME || true &&
docker rm $IMAGE_NAME || true &&
docker build -t $IMAGE_NAME:$IMAGE_TAG /home/arkadii/artberry_backend &&