140 lines
3.0 KiB
YAML
140 lines
3.0 KiB
YAML
kind: pipeline
|
|
name: publish client to docker hub
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- tag
|
|
ref:
|
|
- refs/heads/master
|
|
- refs/tags/v*
|
|
|
|
steps:
|
|
|
|
- name: push image - amd64
|
|
image: plugins/docker
|
|
settings:
|
|
repo: iamthefij/dockamole-client
|
|
context: client
|
|
dockerfile: client/Dockerfile
|
|
auto_tag: true
|
|
auto_tag_suffix: linux-amd64
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
|
|
- name: push image - arm32v7
|
|
image: plugins/docker
|
|
settings:
|
|
repo: iamthefij/dockamole-client
|
|
context: client
|
|
dockerfile: client/Dockerfile
|
|
auto_tag: true
|
|
auto_tag_suffix: linux-arm32v7
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
build_args:
|
|
- REPO=arm32v7
|
|
- GOARCH=arm
|
|
|
|
- name: push image - arm64
|
|
image: plugins/docker
|
|
settings:
|
|
repo: iamthefij/dockamole-client
|
|
context: client
|
|
dockerfile: client/Dockerfile
|
|
auto_tag: true
|
|
auto_tag_suffix: linux-arm64v8
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
build_args:
|
|
- REPO=arm64v8
|
|
- GOARCH=arm
|
|
|
|
- name: publish manifest
|
|
image: plugins/manifest
|
|
settings:
|
|
spec: client/manifest.tmpl
|
|
auto_tag: true
|
|
ignore_missing: true
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
name: publish server to docker hub
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- tag
|
|
ref:
|
|
- refs/heads/master
|
|
- refs/tags/v*
|
|
|
|
steps:
|
|
|
|
- name: push image - amd64
|
|
image: plugins/docker
|
|
settings:
|
|
repo: iamthefij/dockamole-server
|
|
context: server
|
|
dockerfile: server/Dockerfile
|
|
auto_tag: true
|
|
auto_tag_suffix: linux-amd64
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
|
|
- name: push image - arm32v7
|
|
image: plugins/docker
|
|
settings:
|
|
repo: iamthefij/dockamole-server
|
|
context: server
|
|
dockerfile: server/Dockerfile
|
|
auto_tag: true
|
|
auto_tag_suffix: linux-arm32v7
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
build_args:
|
|
- REPO=arm32v7
|
|
- GOARCH=arm
|
|
|
|
- name: push image - arm64
|
|
image: plugins/docker
|
|
settings:
|
|
repo: iamthefij/dockamole-server
|
|
context: server
|
|
dockerfile: server/Dockerfile
|
|
auto_tag: true
|
|
auto_tag_suffix: linux-arm64v8
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
build_args:
|
|
- REPO=arm64v8
|
|
- GOARCH=arm
|
|
|
|
- name: publish manifest
|
|
image: plugins/manifest
|
|
settings:
|
|
spec: server/manifest.tmpl
|
|
auto_tag: true
|
|
ignore_missing: true
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|