Commit 9d716cdd authored by Wen Wei Li's avatar Wen Wei Li

show env

parent 50214e94
---
kind: pipeline kind: pipeline
type: docker
name: default name: default
steps: steps:
- name: show env - name: show env
image: golang image: golang
# image: ghcr.io/appleboy/drone-ssh commands:
#settings:
# host:
# - 192.168.0.22
# username: root
# password:
# from_secret: ssh_password
# port: 22
# command_timeout: 30s
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}"
- echo "DRONE_BUILD_EVENT = ${DRONE_BUILD_EVENT}" - echo "DRONE_BUILD_EVENT = ${DRONE_BUILD_EVENT}"
...@@ -80,7 +74,16 @@ steps: ...@@ -80,7 +74,16 @@ 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: # image: ghcr.io/appleboy/drone-ssh
#- echo "Hello World" > /tmp/hello #settings:
#- kubectl get pods -n ricplt # host:
#- echo $(pwd) # - 192.168.0.22
# username: root
# password:
# from_secret: ssh_password
# port: 22
# command_timeout: 30s
#script:
# - echo "Hello World" > /tmp/hello
# - kubectl get pods -n ricplt
# - 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