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
|
||||
name: default
|
||||
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/dn42regsrv
|
||||
|
||||
steps:
|
||||
|
||||
- name: build
|
||||
image: golang
|
||||
image: alpine
|
||||
environment:
|
||||
BLAH:
|
||||
from_secret: blah
|
||||
commands:
|
||||
- go build
|
||||
|
||||
- name: release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
base_url: https://git.burble.dn42
|
||||
files:
|
||||
- pipeline-test
|
||||
checksum:
|
||||
- sha512
|
||||
title: pipeline-test - ${DRONE_TAG}
|
||||
note: ${DRONE_COMMIT_MESSAGE}
|
||||
when:
|
||||
event: tag
|
||||
|
||||
- echo "secret is: $BLAH"
|
||||
|
||||
---
|
||||
kind: secret
|
||||
name: blah
|
||||
get:
|
||||
path: burble.dn42/kv/drone/text
|
||||
name: blah
|
||||
|
Loading…
x
Reference in New Issue
Block a user