docker-mastodon/.drone.yml

98 lines
1.7 KiB
YAML
Raw Normal View History

2022-01-31 18:53:57 +00:00
kind: pipeline
type: docker
name: publish-amd64
platform:
arch: amd64
steps:
2022-01-31 20:43:48 +00:00
- name: extra-tags
image: busybox:latest
commands:
2022-01-31 21:38:40 +00:00
- echo "$BASE_TAG-$GIT_BRANCH-linux-amd64,$GIT_BRANCH-linux-amd64,latest-linux-amd64,linux-amd64,amd64" | sed 's/\\//-/g' > .tags
2022-01-31 20:43:48 +00:00
2022-01-31 18:53:57 +00:00
- name: push
image: plugins/docker:20
settings:
username: asonix
password:
from_secret: dockerhub_token
repo: asonix/mastodon
dockerfile: Dockerfile
build_args:
- REPO_ARCH=amd64
- GIT_REPOSITORY=https://git.asonix.dog/asonix/mastodon
build_args_from_env:
2022-01-31 20:43:48 +00:00
- GIT_BRANCH
2022-01-31 18:53:57 +00:00
trigger:
event:
2022-01-31 18:54:44 +00:00
- custom
2022-01-31 18:53:57 +00:00
---
kind: pipeline
type: docker
name: publish-arm64v8
platform:
arch: arm64
steps:
2022-01-31 20:43:48 +00:00
- name: extra-tags
image: busybox:latest
commands:
2022-01-31 21:38:40 +00:00
- echo "$BASE_TAG-$GIT_BRANCH-linux-arm64v8,$GIT_BRANCH-linux-arm64v8,latest-linux-arm64v8,linux-arm64v8,arm64v8" | sed 's/\\//-/g' > .tags
2022-01-31 20:43:48 +00:00
2022-01-31 18:53:57 +00:00
- name: push
image: plugins/docker:20
settings:
username: asonix
password:
from_secret: dockerhub_token
repo: asonix/mastodon
dockerfile: Dockerfile
build_args:
- REPO_ARCH=arm64v8
- GIT_REPOSITORY=https://git.asonix.dog/asonix/mastodon
build_args_from_env:
2022-01-31 20:43:48 +00:00
- GIT_BRANCH
2022-01-31 18:53:57 +00:00
trigger:
event:
2022-01-31 18:54:44 +00:00
- custom
2022-01-31 18:53:57 +00:00
---
kind: pipeline
type: docker
name: manifest
platform:
arch: amd64
steps:
2022-01-31 20:43:48 +00:00
- name: extra-tags
image: busybox:latest
commands:
2022-01-31 21:38:40 +00:00
- echo "$BASE_TAG-$GIT_BRANCH,$GIT_BRANCH,latest-linux,latest" | sed 's/\\//-/g' > .tags
2022-01-31 20:43:48 +00:00
2022-01-31 18:53:57 +00:00
- name: manifest
image: plugins/manifest:1
settings:
username: asonix
password:
from_secret: dockerhub_token
dump: true
ignore_missing: true
spec: manifest.tmpl
depends_on:
- publish-amd64
- publish-arm64v8
trigger:
event:
2022-01-31 18:54:44 +00:00
- custom