docker-terminal-image/.drone.yml

33 lines
751 B
YAML
Raw Normal View History

2020-01-23 22:27:39 +01:00
kind: pipeline
type: docker
name: default
steps:
- name: build
image: docker:stable-dind
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_USERNAME:
from_secret: DOCKER_USERNAME
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
commands:
2020-01-23 22:32:36 +01:00
- sleep 15
2020-01-23 22:27:39 +01:00
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
2020-01-24 12:33:54 +01:00
- docker build -t="tormachris/terminal:$DRONE_BUILD_NUMBER" . && docker push "tormachris/terminal:$DRONE_BUILD_NUMBER"
- docker build -t="tormachris/terminal" . && docker push "tormachris/terminal"
2020-01-23 22:27:39 +01:00
services:
- name: docker
image: docker:stable-dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}