shuttle-drone-templates/.drone.yml

31 lines
740 B
YAML
Raw Normal View History

2023-04-07 19:32:12 +02:00
type: docker
kind: pipeline
2023-04-07 19:32:55 +02:00
name: "shuttle-drone-templates"
2023-04-07 19:32:12 +02:00
steps:
- name: "build"
2023-04-07 19:36:35 +02:00
image: docker.io/kasperhermansen/shuttle-drone:1680888967326
2023-04-07 19:32:12 +02:00
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_BUILDKIT: 1
2023-04-07 19:38:31 +02:00
DOCKER_PASSWORD:
2023-04-07 19:40:51 +02:00
from_secret: docker_secret
2023-04-07 19:38:31 +02:00
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_HOST: docker.io
2023-04-07 19:32:12 +02:00
commands:
- sleep 5
2023-04-07 19:39:04 +02:00
- echo "$DOCKER_PASSWORD" | docker login --password-stdin --username="$DOCKER_USERNAME" "$DOCKER_HOST"
2023-04-07 19:32:12 +02:00
- shuttle run build
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}