test secrets
This commit is contained in:
parent
2f521943b4
commit
bfccce270f
35
.drone.yml
35
.drone.yml
@ -3,29 +3,18 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
workspace:
|
|
||||||
base: /go
|
|
||||||
path: src/dn42regsrv
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: alpine
|
||||||
|
environment:
|
||||||
|
BLAH:
|
||||||
|
from_secret: blah
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- echo "secret is: $BLAH"
|
||||||
|
|
||||||
- name: release
|
---
|
||||||
image: plugins/gitea-release
|
kind: secret
|
||||||
settings:
|
name: blah
|
||||||
api_key:
|
get:
|
||||||
from_secret: gitea_token
|
path: burble.dn42/kv/drone/text
|
||||||
base_url: https://git.burble.dn42
|
name: blah
|
||||||
files:
|
|
||||||
- pipeline-test
|
|
||||||
checksum:
|
|
||||||
- sha512
|
|
||||||
title: pipeline-test - ${DRONE_TAG}
|
|
||||||
note: ${DRONE_COMMIT_MESSAGE}
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user