45 lines
884 B
YAML
45 lines
884 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: misskey-szuru-bot
|
|
|
|
steps:
|
|
- name: build and publish stable
|
|
image: thegeeklab/drone-docker-buildx
|
|
privileged: true
|
|
settings:
|
|
repo: shibaobun/misskey-szuru-bot
|
|
purge: true
|
|
compress: true
|
|
platforms: linux/amd64,linux/arm/v7
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
tags: latest
|
|
when:
|
|
branch:
|
|
- stable
|
|
|
|
- name: build and publish tagged version
|
|
image: thegeeklab/drone-docker-buildx
|
|
privileged: true
|
|
settings:
|
|
repo: shibaobun/misskey-szuru-bot
|
|
purge: true
|
|
compress: true
|
|
platforms: linux/amd64,linux/arm/v7
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
tags:
|
|
- ${DRONE_TAG}
|
|
when:
|
|
event:
|
|
- tag
|
|
|
|
volumes:
|
|
- name: docker_sock
|
|
host:
|
|
path: /var/run/docker.sock
|