This commit is contained in:
parent
22571374e2
commit
1ee5b8aea6
@ -1,8 +1,9 @@
|
||||
local PipelineBuild(os='linux', arch='amd64', version='gce') = {
|
||||
local tag = version + '-' + os + '-' + arch,
|
||||
local file_suffix = std.strReplace(tag, '-', '.'),
|
||||
local tag = os + '-' + arch,
|
||||
local version_tag = version + '-' + os + '-' + arch,
|
||||
local file_suffix = std.strReplace(version_tag, '-', '.'),
|
||||
kind: "pipeline",
|
||||
name: tag,
|
||||
name: version_tag,
|
||||
platform: {
|
||||
os: os,
|
||||
arch: arch,
|
||||
@ -14,7 +15,7 @@ local PipelineBuild(os='linux', arch='amd64', version='gce') = {
|
||||
pull: 'always',
|
||||
settings: {
|
||||
dry_run: true,
|
||||
tags: tag,
|
||||
tags: version_tag,
|
||||
dockerfile: 'docker/Dockerfile.' + file_suffix,
|
||||
repo: ' xoxys/molecule',
|
||||
username: { from_secret: "docker_username" },
|
||||
@ -27,7 +28,7 @@ local PipelineBuild(os='linux', arch='amd64', version='gce') = {
|
||||
pull: 'always',
|
||||
settings: {
|
||||
auto_tag: true,
|
||||
auto_tag_suffix: tag,
|
||||
auto_tag_suffix: version_tag,
|
||||
dockerfile: 'docker/Dockerfile.' + file_suffix,
|
||||
repo: ' xoxys/molecule',
|
||||
username: { from_secret: "docker_username" },
|
||||
@ -95,6 +96,6 @@ local PipelineNotifications(depends_on=[]) = {
|
||||
[
|
||||
PipelineBuild(os='linux', arch='amd64', version='gce'),
|
||||
PipelineNotifications(depends_on=[
|
||||
"linux-amd64"
|
||||
"gce-linux-amd64"
|
||||
])
|
||||
]
|
||||
|
@ -9,7 +9,7 @@ platform:
|
||||
steps:
|
||||
- name: dryrun
|
||||
pull: always
|
||||
image: plugins/docker:gce-linux-amd64
|
||||
image: plugins/docker:linux-amd64
|
||||
settings:
|
||||
dockerfile: docker/Dockerfile.gce.linux.amd64
|
||||
dry_run: true
|
||||
@ -22,7 +22,7 @@ steps:
|
||||
|
||||
- name: publish
|
||||
pull: always
|
||||
image: plugins/docker:gce-linux-amd64
|
||||
image: plugins/docker:linux-amd64
|
||||
settings:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: gce-linux-amd64
|
||||
@ -88,6 +88,6 @@ trigger:
|
||||
- failure
|
||||
|
||||
depends_on:
|
||||
- linux-amd64
|
||||
- gce-linux-amd64
|
||||
|
||||
...
|
||||
|
Reference in New Issue
Block a user