ai-base-image/.drone.yml

35 lines
861 B
YAML
Raw Normal View History

2020-05-06 12:17:20 +02:00
kind: pipeline
type: docker
name: default
steps:
2020-08-06 22:56:23 +02:00
- name: docker
image: docker
volumes:
2020-08-06 22:59:13 +02:00
- name: docker_sock
path: /var/run/docker.sock
2020-08-06 23:02:04 +02:00
environment:
DOCKER_USERNAME:
from_secret: DOCKER_USERNAME
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
2020-08-06 22:56:23 +02:00
commands:
2020-08-06 22:59:53 +02:00
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
2020-08-06 22:56:23 +02:00
- docker build -t registry.kmlabz.com/$DRONE_REPO .
- docker build -t registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER .
- docker push registry.kmlabz.com/$DRONE_REPO
- docker push registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER
2020-05-06 12:17:20 +02:00
- name: ms-teams
image: kuperiu/drone-teams
settings:
webhook:
from_secret: TEAMS_WEBHOOK
when:
status: [ failure ]
2020-08-06 22:59:13 +02:00
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock