Compare commits
No commits in common. "master" and "0.0.1" have entirely different histories.
19
.drone.yml
19
.drone.yml
|
@ -1,27 +1,30 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: maven-build-pipeline
|
name: pipeline-example-maven
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: BuildProject
|
- name: Build Project
|
||||||
image: maven:3-jdk-11
|
image: maven:3-jdk-11
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /root/.m2
|
path: /root/.m2
|
||||||
commands:
|
commands:
|
||||||
- mvn clean install
|
- mvn clean package
|
||||||
- ls target
|
|
||||||
|
|
||||||
- name: SendToDingTalk
|
- name: Send To DingTalk
|
||||||
image: lddsb/drone-dingtalk-message
|
image: guoxudongdocker/drone-dingtalk
|
||||||
settings:
|
settings:
|
||||||
token: af1973914f3b2af28fe7fb96c424a557059d4d3af5cba33b31d6640e8538ba45
|
token: af1973914f3b2af28fe7fb96c424a557059d4d3af5cba33b31d6640e8538ba45
|
||||||
type: markdown
|
type: markdown
|
||||||
message_color: true
|
message_color: true
|
||||||
message_pic: true
|
message_pic: true
|
||||||
sha_link: true
|
sha_link: true
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
||||||
|
- success
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
event:
|
||||||
|
- tag
|
|
@ -1,29 +0,0 @@
|
||||||
name: TestActions
|
|
||||||
|
|
||||||
on:
|
|
||||||
tag:
|
|
||||||
- '*'
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- '*'
|
|
||||||
- '!main'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Test:
|
|
||||||
name: Test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo "${{ toJson(github) }}"
|
|
||||||
- run: echo "${{ toJson(runner) }}"
|
|
||||||
- run: echo "${{ toJson(gitea) }}"
|
|
||||||
- run: echo "${{ toJson(job) }}"
|
|
||||||
- name: "Echo ENV"
|
|
||||||
run: echo "${{ toJson(env) }}"
|
|
||||||
env:
|
|
||||||
TEST: wuhu
|
|
||||||
NUM: 123
|
|
||||||
BOOL: true
|
|
||||||
- name: "Test ENV"
|
|
||||||
run: echo "$TEST"
|
|
||||||
env:
|
|
||||||
TEST: wuhu
|
|
Loading…
Reference in New Issue