Commit 50214e94 authored by Wen Wei Li's avatar Wen Wei Li

check drone env

parent 8913d744
...@@ -2,16 +2,17 @@ kind: pipeline ...@@ -2,16 +2,17 @@ kind: pipeline
name: default name: default
steps: steps:
- name: ssh - name: show env
image: ghcr.io/appleboy/drone-ssh image: golang
settings: # image: ghcr.io/appleboy/drone-ssh
host: #settings:
- 192.168.0.22 # host:
username: root # - 192.168.0.22
password: # username: root
from_secret: ssh_password # password:
port: 22 # from_secret: ssh_password
command_timeout: 30s # port: 22
# command_timeout: 30s
commands: commands:
- echo "DRONE_BUILD_ACTION = ${DRONE_BUILD_ACTION}" - echo "DRONE_BUILD_ACTION = ${DRONE_BUILD_ACTION}"
- echo "DRONE_BUILD_CREATED = ${DRONE_BUILD_CREATED}" - echo "DRONE_BUILD_CREATED = ${DRONE_BUILD_CREATED}"
...@@ -79,7 +80,7 @@ steps: ...@@ -79,7 +80,7 @@ steps:
- echo "DRONE_TAG = ${DRONE_TAG}" - echo "DRONE_TAG = ${DRONE_TAG}"
- echo "DRONE_TARGET_BRANCH = ${DRONE_TARGET_BRANCH}" - echo "DRONE_TARGET_BRANCH = ${DRONE_TARGET_BRANCH}"
script: #script:
- echo "Hello World" > /tmp/hello #- echo "Hello World" > /tmp/hello
- kubectl get pods -n ricplt #- kubectl get pods -n ricplt
- echo $(pwd) #- echo $(pwd)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment