41 lines
964 B
YAML
41 lines
964 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
steps:
|
|
- name: build-raspi-image
|
|
image: docker:dind
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run
|
|
environment:
|
|
ALPINE_BRANCH: v3.14
|
|
ALPINE_MIRROR: https://quantum-mirror.hu/mirrors/pub/alpine/
|
|
DEFAULT_TIMEZONE: Europe/Budapest
|
|
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 run -i -v $PWD/output:/output registry.kmlabz.com/birbnetes/raspi-alpine-builder
|
|
|
|
- name: ms-teams
|
|
image: kuperiu/drone-teams
|
|
settings:
|
|
webhook:
|
|
from_secret: TEAMS_WEBHOOK
|
|
when:
|
|
status: [ failure ]
|
|
|
|
services:
|
|
- name: docker
|
|
image: docker:dind
|
|
privileged: true
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
temp: {}
|