65 lines
1.2 KiB
YAML
65 lines
1.2 KiB
YAML
kind: pipeline
|
|
name: amd64
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: docker
|
|
image: plugins/docker
|
|
settings:
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
repo: registry.meow.tf/joker/godns
|
|
registry: registry.meow.tf
|
|
tags:
|
|
- amd64-latest
|
|
|
|
---
|
|
kind: pipeline
|
|
name: arm64
|
|
|
|
platform:
|
|
os: linux
|
|
arch: arm64
|
|
|
|
steps:
|
|
- name: docker
|
|
image: plugins/docker
|
|
settings:
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
repo: registry.meow.tf/joker/godns
|
|
registry: registry.meow.tf
|
|
tags:
|
|
- arm64-latest
|
|
|
|
---
|
|
kind: pipeline
|
|
name: manifest
|
|
|
|
steps:
|
|
- name: manifest
|
|
image: registry.meow.tf/docker/tools/manifest-tool:amd64-latest
|
|
environment:
|
|
DOCKER_USERNAME:
|
|
from_secret: docker_username
|
|
DOCKER_PASSWORD:
|
|
from_secret: docker_password
|
|
DOCKER_REGISTRY:
|
|
from_secret: docker_registry
|
|
commands:
|
|
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY
|
|
- /usr/bin/manifest-tool push from-spec manifest.yml
|
|
|
|
depends_on:
|
|
- amd64
|
|
- arm64
|
|
|
|
image_pull_secrets:
|
|
- dockerconfigjson |