forked from gravitational/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
50 lines (44 loc) · 981 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
kind: pipeline
type: kubernetes
name: build
trigger:
branch:
- main
event:
include:
- push
steps:
- name: Build and push Docker container
image: docker:stable-git
environment:
REPO: quay.io
settings:
username:
from_secret: QUAYIO_DOCKER_USERNAME
password:
from_secret: QUAYIO_DOCKER_PASSWORD
volumes:
- name: dockersock
path: /var/run
commands:
# wait for docker to start
- timeout 15s /bin/sh -c 'while [ ! -S /var/run/docker.sock ]; do sleep 1; done'
- apk add --no-cache make
- make docker-image
- docker login -u="$PLUGIN_USERNAME" -p="$PLUGIN_PASSWORD" $REPO
- make docker-push
services:
- name: Start Docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
---
kind: signature
hmac: 04fb7dee9a29bc2de21842377aa023a5c357fe9c86029e27ec9b57da5e672919
...