From e5f313bcd53eb4180d613e549c76ef26a0b07bbb Mon Sep 17 00:00:00 2001 From: mahdi Date: Thu, 14 Dec 2023 01:27:44 +0100 Subject: [PATCH] devops - drone test --- .drone.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index c1f4b9d..3da046b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,18 +32,27 @@ steps: - export msg="${msg:0:10}" - /bin/bash -c "curl -s -k -X POST https://zulip.meta-tech.academy/api/v1/messages -u drone-bot@zulip.meta-tech.academy:iIm8Hc2VuvK06iDxUODUIndlRu6As6bO --data-urlencode type=stream --data-urlencode 'to=\"gitea\"' --data-urlencode topic=build --data-urlencode content=\"build n° ${DRONE_BUILD_NUMBER} - ${DRONE_REPO}/${DRONE_REPO_BRANCH}/${DRONE_COMMIT} by ${DRONE_COMMIT_AUTHOR} > ${DRONE_BUILD_STATUS} < $${msg} ...\"" -- name: deploy code - image: appleboy/drone-ssh +# - name: deploy code +# image: appleboy/drone-ssh +# volumes: +# - name: ssh_key +# path: /root/.ssh +# settings: +# host: bosub-kub-int.metacoaching.pro +# username: mtc +# port: 21022 +# key_path: /root/.ssh/id_rsa.kubehost +# script: +# - echo "Target host name :\ `hostname`" + +steps: +- name: test volumes + image: alpine volumes: - name: ssh_key path: /root/.ssh - settings: - host: bosub-kub-int.metacoaching.pro - username: mtc - port: 21022 - key_path: /root/.ssh/id_rsa.kubehost - script: - - echo "Target host name :\ `hostname`" + commands: + - ls -lah /root/.ssh volumes: - name: deps