summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorl3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-03-14 14:26:02 +0200
committerl3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-03-14 14:26:02 +0200
commit4f4b6e517f48fa8493c6d19adc7ae66a307908d9 (patch)
tree111b251cb091bfc6c8fe472cf10f89d0e87eb1bb /.gitlab-ci.yml
parenta26d45c15da6ea4393858d31a28993472a27b3c5 (diff)
fix gitlab-ci x5
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 20e6e12..360de78 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,9 +17,14 @@ build:
deploy:
stage: deploy
- image: appleboy/drone-ssh:latest
- environment:
- name: production
+ image: docker:24.0.5
+ before_script:
+ - mkdir -p ~/.ssh
+ - echo "$SSH_PRIVATE_KEY_B64" | base64 -d > ~/.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
script:
- ssh arkadii@192.168.0.171 "
docker stop $IMAGE_NAME || true &&