Add client and server builds
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
IamTheFij 2019-08-09 17:00:10 -07:00
parent de9c09b114
commit 18d9b7f572
4 changed files with 120 additions and 27 deletions

View File

@ -1,5 +1,5 @@
kind: pipeline
name: publish to docker hub
name: publish client to docker hub
trigger:
event:
@ -14,7 +14,8 @@ steps:
- name: push image - amd64
image: plugins/docker
settings:
repo: iamthefij/dockamole
repo: iamthefij/dockamole-client
context: client
auto_tag: true
auto_tag_suffix: linux-amd64
username:
@ -25,7 +26,8 @@ steps:
- name: push image - arm32v7
image: plugins/docker
settings:
repo: iamthefij/dockamole
repo: iamthefij/dockamole-client
context: client
auto_tag: true
auto_tag_suffix: linux-arm32v7
username:
@ -39,7 +41,8 @@ steps:
- name: push image - arm64
image: plugins/docker
settings:
repo: iamthefij/dockamole
repo: iamthefij/dockamole-client
context: client
auto_tag: true
auto_tag_suffix: linux-arm64v8
username:
@ -53,7 +56,75 @@ steps:
- name: publish manifest
image: plugins/manifest
settings:
spec: manifest.tmpl
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
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
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
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:

22
client/manifest.tmpl Normal file
View File

@ -0,0 +1,22 @@
image: iamthefij/dockamole-client:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
- image: iamthefij/dockamole-client:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux
- image: iamthefij/dockamole-client:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64v8
platform:
architecture: arm64
os: linux
variant: v8
- image: iamthefij/dockamole-client:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm32v7
platform:
architecture: arm
os: linux
variant: v7

View File

@ -1,22 +0,0 @@
image: iamthefij/dockamole:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
- image: iamthefij/dockamole:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux
- image: iamthefij/dockamole:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64v8
platform:
architecture: arm64
os: linux
variant: v8
- image: iamthefij/dockamole:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm32v7
platform:
architecture: arm
os: linux
variant: v7

22
server/manifest.tmpl Normal file
View File

@ -0,0 +1,22 @@
image: iamthefij/dockamole-server:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
- image: iamthefij/dockamole-server:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux
- image: iamthefij/dockamole-server:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64v8
platform:
architecture: arm64
os: linux
variant: v8
- image: iamthefij/dockamole-server:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm32v7
platform:
architecture: arm
os: linux
variant: v7