docker-mastodon/.drone.yml
Aode (lion) bf09fb0f11
All checks were successful
continuous-integration/drone Build is passing
Don't auto-tag
2022-01-31 15:38:40 -06:00

98 lines
1.7 KiB
YAML

kind: pipeline
type: docker
name: publish-amd64
platform:
arch: amd64
steps:
- name: extra-tags
image: busybox:latest
commands:
- echo "$BASE_TAG-$GIT_BRANCH-linux-amd64,$GIT_BRANCH-linux-amd64,latest-linux-amd64,linux-amd64,amd64" | sed 's/\\//-/g' > .tags
- 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:
- GIT_BRANCH
trigger:
event:
- custom
---
kind: pipeline
type: docker
name: publish-arm64v8
platform:
arch: arm64
steps:
- name: extra-tags
image: busybox:latest
commands:
- echo "$BASE_TAG-$GIT_BRANCH-linux-arm64v8,$GIT_BRANCH-linux-arm64v8,latest-linux-arm64v8,linux-arm64v8,arm64v8" | sed 's/\\//-/g' > .tags
- 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:
- GIT_BRANCH
trigger:
event:
- custom
---
kind: pipeline
type: docker
name: manifest
platform:
arch: amd64
steps:
- name: extra-tags
image: busybox:latest
commands:
- echo "$BASE_TAG-$GIT_BRANCH,$GIT_BRANCH,latest-linux,latest" | sed 's/\\//-/g' > .tags
- 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:
- custom