fix some naming errors
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-03-18 14:49:39 +01:00
parent 22571374e2
commit 1ee5b8aea6
2 changed files with 10 additions and 9 deletions

View File

@ -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"
])
]

View File

@ -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
...