-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
40 lines (37 loc) · 1010 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
kind: pipeline
type: docker
name: default
steps:
- name: deploy
image: docker:dind
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_HUB_USERNAME:
from_secret: DOCKER_HUB_USERNAME
DOCKER_HUB_PASSWORD:
from_secret: DOCKER_HUB_PASSWORD
commands:
- sleep 5 # give docker enough time to start
# build the Docker image (this will use the Dockerfile in the root of the repo)
- docker build -t andreapavoni/robo_radio:latest .
# authenticate with the Docker Hub registry
- docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
# push the new Docker image to the Docker registry
- docker push andreapavoni/robo_radio:latest
when:
branch:
- master
# ref:
# - refs/tags/*
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}