bust/templates/bust_gobin_default_template.yaml

41 lines
895 B
YAML
Raw Normal View History

2022-10-30 19:57:04 +01:00
type: docker
kind: pipeline
name: "drone-dagger-test"
steps:
- name: "build"
2022-10-31 20:23:47 +01:00
image: harbor.server.kjuulh.io/kjuulh/bust:1667244085545
2022-10-30 19:57:04 +01:00
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_BUILDKIT: 1
2022-10-31 01:03:48 +01:00
HARBOR_DOCKER_HOST: "harbor.server.kjuulh.io"
2022-10-30 19:57:04 +01:00
HARBOR_DOCKER_USERNAME:
from_secret: "harbor_docker_username"
HARBOR_DOCKER_PASSWORD:
from_secret: "harbor_docker_password"
commands:
- sleep 5
2022-10-31 00:21:58 +01:00
- >
echo "$${HARBOR_DOCKER_PASSWORD}" | docker login
--password-stdin
--username="$${HARBOR_DOCKER_USERNAME}"
"$${HARBOR_DOCKER_HOST}"
2022-10-31 20:16:26 +01:00
- bust build golangbin
2022-10-30 19:57:04 +01:00
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
2022-10-30 20:46:13 +01:00
image_pull_secrets:
- dockerconfig