gde4onos/.drone.yml

31 lines
860 B
YAML
Raw Normal View History

2020-09-02 23:25:54 +00:00
kind: pipeline
2020-09-02 23:35:36 +00:00
type: ssh
2020-09-02 23:25:54 +00:00
name: default
server:
host:
from_secret: host
user:
from_secret: username
ssh_key:
from_secret: ssh_key
steps:
2020-09-02 23:35:36 +00:00
- name: build
2020-09-02 23:25:54 +00:00
commands:
2020-09-02 23:35:36 +00:00
- make
2020-09-02 23:25:54 +00:00
- name: publish
depends_on:
2020-09-03 00:24:40 +00:00
- build
2020-09-03 00:12:14 +00:00
environment:
GITEA_API_KEY:
2020-09-02 23:25:54 +00:00
from_secret: GITEA_API_KEY
2020-09-03 00:12:14 +00:00
commands:
2020-09-03 01:36:16 +00:00
- docker run --rm -e PLUGIN_BASE_URL="https://git.adlerneves.com" -e PLUGIN_API_KEY=$${GITEA_API_KEY} -e PLUGIN_FILES=plugin.oar -e DRONE_REPO_OWNER=${DRONE_REPO_OWNER} -e DRONE_REPO_NAME=${DRONE_REPO_NAME} -e PLUGIN_DRAFT=false -e PLUGIN_INSECURE=false -e PLUGIN_PRERELEASE=true -e DRONE_COMMIT_REF=builds -e DRONE_BUILD_EVENT=tag -e PLUGIN_TITLE="CI build" -e PLUGIN_NOTE="This is the latest build from the CI pipeline" -v $(pwd):$(pwd) -w $(pwd) plugins/gitea-release
2020-09-03 01:38:35 +00:00
trigger:
branch:
exclude:
- builds