nsd-docker/.drone.yml

83 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2020-04-20 08:49:48 +00:00
---
2020-04-20 08:46:18 +00:00
kind: pipeline
2020-04-20 08:49:48 +00:00
type: docker
2022-12-23 20:56:46 +00:00
name: build_amd64
platform:
os: linux
arch: amd64
steps:
2022-12-23 21:12:49 +00:00
- name: send-tags-to-tags-file
image: node
when:
event:
- push
- pull_request
commands:
2022-12-23 21:27:39 +00:00
- echo -n "$(date +'%Y%m%d')-amd64, latest-amd64" > .tags
2022-12-23 21:12:49 +00:00
2022-12-23 20:56:46 +00:00
- name: push docker image
image: plugins/docker
settings:
repo: j10l/nsd-docker
username:
from_secret: docker_username
password:
from_secret: docker_password
2020-04-20 08:46:18 +00:00
2022-12-23 20:56:46 +00:00
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
2022-12-23 20:57:41 +00:00
name: build_arm64
2022-12-23 20:56:46 +00:00
platform:
os: linux
arch: arm64
2020-04-20 08:46:18 +00:00
steps:
2022-12-23 21:12:49 +00:00
- name: send-tags-to-tags-file
image: node
when:
event:
- push
- pull_request
commands:
- echo -n "$(date +'%Y%m%d')-arm64, latest-arm64" > .tags
2020-04-20 09:15:00 +00:00
- name: push docker image
image: plugins/docker
settings:
repo: j10l/nsd-docker
username:
from_secret: docker_username
password:
from_secret: docker_password
2020-04-20 08:53:47 +00:00
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
2022-12-23 20:56:46 +00:00
2022-12-23 21:45:41 +00:00
---
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
2022-12-23 21:47:58 +00:00
depends_on:
- build_amd64
- build_arm64