test secrets

This commit is contained in:
Simon Marsh 2021-12-21 11:57:22 +00:00
parent 2f521943b4
commit bfccce270f
Signed by: burble
GPG Key ID: 0FCCD13AE1CF7ED8

View File

@ -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