docker-nextcloud/.drone.yml
asonix d3bda5afea
All checks were successful
continuous-integration/drone/tag Build is passing
Remove arm32v7
2023-06-09 19:27:35 -05:00

116 lines
1.8 KiB
YAML

kind: pipeline
type: docker
name: publish-amd64
platform:
arch: amd64
steps:
- name: prepare
image: alpine:latest
commands:
- sed -i'' "s/NEXTCLOUD_VERSION/$(echo "${DRONE_TAG}" | sed 's/^v//' | sed 's/-[[:alnum:]]\+$//')/g" Dockerfile
- name: push
image: plugins/docker:20
settings:
username: asonix
password:
from_secret: dockerhub_token
repo: asonix/nextcloud
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: linux-amd64
build_args:
- REPO_ARCH=amd64
- TARGET_TRIPLE=x86_64-unknown-linux-musl
trigger:
event:
- tag
---
kind: pipeline
type: docker
name: publish-arm64v8
platform:
arch: amd64
steps:
- name: prepare
image: alpine:latest
commands:
- sed -i'' "s/NEXTCLOUD_VERSION/$(echo "${DRONE_TAG}" | sed 's/^v//' | sed 's/-[[:alnum:]]\+$//')/g" Dockerfile
- name: push
image: plugins/docker:20
settings:
username: asonix
password:
from_secret: dockerhub_token
repo: asonix/nextcloud
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: linux-arm64v8
build_args:
- REPO_ARCH=arm64v8
- TARGET_TRIPLE=aarch64-unknown-linux-musl
trigger:
event:
- tag
---
kind: pipeline
type: docker
name: manifest
platform:
arch: amd64
steps:
- name: manifest
image: plugins/manifest:1
settings:
username: asonix
password:
from_secret: dockerhub_token
dump: true
auto_tag: true
ignore_missing: true
spec: manifest.tmpl
depends_on:
- publish-amd64
- publish-arm64v8
trigger:
event:
- tag
---
kind: pipeline
type: docker
name: cron
steps:
- name: tag
image: asonix/release-checker:0.1
pull: always
environment:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- /usr/local/bin/release-checker
trigger:
event:
- custom
- cron