63 lines
1.0 KiB
YAML
63 lines
1.0 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'), latest" > .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
|
|
|