Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
drone_test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wen Wei Li
drone_test
Commits
50214e94
Commit
50214e94
authored
Aug 17, 2023
by
Wen Wei Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check drone env
parent
8913d744
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
.drone.yml
.drone.yml
+15
-14
No files found.
.drone.yml
View file @
50214e94
...
@@ -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)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment