nsd-docker/.drone.yml

83 lines
1.4 KiB
YAML

---
kind: pipeline
type: docker
name: build_amd64
platform:
os: linux
arch: amd64
steps:
- name: send-tags-to-tags-file
image: node
when:
event:
- push
- pull_request
commands:
- echo -n "$(date +'%Y%m%d')-amd64, latest-amd64" > .tags
- name: push docker image
image: plugins/docker
settings:
repo: j10l/nsd-docker
username:
from_secret: docker_username
password:
from_secret: docker_password
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: build_arm64
platform:
os: linux
arch: arm64
steps:
- name: send-tags-to-tags-file
image: node
when:
event:
- push
- pull_request
commands:
- echo -n "$(date +'%Y%m%d')-arm64, latest-arm64" > .tags
- name: push docker image
image: plugins/docker
settings:
repo: j10l/nsd-docker
username:
from_secret: docker_username
password:
from_secret: docker_password
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: upload_manifest
steps:
- name: upload_manifest
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
target: j10l/nsd-docker:latest
template: j10l/nsd-docker:latest-ARCH
platforms:
- linux/amd64
- linux/arm64
depends_on:
- build_amd64
- build_arm64