bust/templates/bust_rustbin_default_template.yaml

35 lines
896 B
YAML
Raw Normal View History

2022-11-06 00:39:03 +01:00
type: docker
kind: pipeline
name: "drone-dagger-test"
steps:
- name: "build"
2023-05-15 21:57:27 +02:00
image: harbor.front.kjuulh.io/kjuulh/bust:1667748107856
2022-11-06 00:39:03 +01:00
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_BUILDKIT: 1
2023-05-15 21:57:27 +02:00
HARBOR_DOCKER_HOST: "harbor.front.kjuulh.io"
2022-11-06 00:39:03 +01:00
HARBOR_DOCKER_USERNAME:
from_secret: "harbor_docker_username"
HARBOR_DOCKER_PASSWORD:
from_secret: "harbor_docker_password"
commands:
- sleep 5
- >
2023-05-15 21:57:27 +02:00
echo "$${HARBOR_DOCKER_PASSWORD}" | docker login --password-stdin --username="$${HARBOR_DOCKER_USERNAME}" "$${HARBOR_DOCKER_HOST}"
2022-11-06 00:39:03 +01:00
2023-05-15 21:57:27 +02:00
- bust build rustbin --bin-name {{ .input.binName }}
2022-11-06 00:39:03 +01:00
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
image_pull_secrets:
- dockerconfig