You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
810 B

kind: pipeline
type: kubernetes
name: default
steps:
- name: test
image: golang
environment:
GO111MODULE: on
commands:
- echo $GO111MODULE
- go test ./... -v -cover
- name: build
image: golang
environment:
GO111MODULE: on
commands:
- go build
- name: docker
image: plugins/docker
settings:
auto_tag: true
build_args_from_env:
- DRONE_COMMIT
- DRONE_TAG
username:
from_secret: username
password:
from_secret: password
repo: registry.ramonr.ch/mediaconverter
registry: registry.ramonr.ch
when:
event: tag
---
kind: secret
name: username
get:
path: registry-basicauth
name: user
---
kind: secret
name: password
get:
path: registry-basicauth
name: password