ai-base-image/.drone.yml
Torma Kristóf a6b82d2f37
All checks were successful
continuous-integration/drone/push Build is passing
ennvar from secret
2020-08-06 23:02:04 +02:00

35 lines
861 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: docker
image: docker
volumes:
- name: docker_sock
path: /var/run/docker.sock
environment:
DOCKER_USERNAME:
from_secret: DOCKER_USERNAME
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
commands:
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
- 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
- name: ms-teams
image: kuperiu/drone-teams
settings:
webhook:
from_secret: TEAMS_WEBHOOK
when:
status: [ failure ]
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock