fix pipeline deps

This commit is contained in:
Robert Kaussow 2019-10-08 16:34:52 +02:00
parent 4d31b9ba0c
commit c2f2702e78
2 changed files with 171 additions and 3 deletions

View File

@ -230,7 +230,10 @@ local PipelineNotifications = {
}, },
], ],
depends_on: [ depends_on: [
"build", "build-package",
"build-container-amd64",
"build-container-arm64",
"build-container-arm"
], ],
trigger: { trigger: {
ref: ["refs/heads/master", "refs/tags/**"], ref: ["refs/heads/master", "refs/tags/**"],
@ -243,5 +246,8 @@ local PipelineNotifications = {
PipelineTest, PipelineTest,
PipelineSecurity, PipelineSecurity,
PipelineBuildPackage, PipelineBuildPackage,
PipelineBuildContainer(arch="amd64"),
PipelineBuildContainer(arch="arm64"),
PipelineBuildContainer(arch="arm"),
PipelineNotifications, PipelineNotifications,
] ]

View File

@ -177,6 +177,165 @@ trigger:
depends_on: depends_on:
- security - security
---
kind: pipeline
name: build-container-amd64
platform:
os: linux
arch: amd64
steps:
- name: build
pull: always
image: python:3.7
commands:
- python setup.py sdist
- name: dryrun
pull: always
image: plugins/docker:linux-amd64
settings:
dockerfile: Dockerfile
dry_run: true
password:
from_secret: docker_password
repo: xoxys/ansible-doctor
tags: amd64
username:
from_secret: docker_username
- name: publish
pull: always
image: plugins/docker:linux-amd64
settings:
auto_tag: true
auto_tag_suffix: amd64
dockerfile: Dockerfile
password:
from_secret: docker_password
repo: xoxys/ansible-doctor
username:
from_secret: docker_username
when:
ref:
- "refs/tags/**"
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- security
---
kind: pipeline
name: build-container-arm64
platform:
os: linux
arch: arm64
steps:
- name: build
pull: always
image: python:3.7
commands:
- python setup.py sdist
- name: dryrun
pull: always
image: plugins/docker:linux-arm64
settings:
dockerfile: Dockerfile
dry_run: true
password:
from_secret: docker_password
repo: xoxys/ansible-doctor
tags: arm64
username:
from_secret: docker_username
- name: publish
pull: always
image: plugins/docker:linux-arm64
settings:
auto_tag: true
auto_tag_suffix: arm64
dockerfile: Dockerfile
password:
from_secret: docker_password
repo: xoxys/ansible-doctor
username:
from_secret: docker_username
when:
ref:
- "refs/tags/**"
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- security
---
kind: pipeline
name: build-container-arm
platform:
os: linux
arch: arm
steps:
- name: build
pull: always
image: python:3.7
commands:
- python setup.py sdist
- name: dryrun
pull: always
image: plugins/docker:linux-arm
settings:
dockerfile: Dockerfile
dry_run: true
password:
from_secret: docker_password
repo: xoxys/ansible-doctor
tags: arm
username:
from_secret: docker_username
- name: publish
pull: always
image: plugins/docker:linux-arm
settings:
auto_tag: true
auto_tag_suffix: arm
dockerfile: Dockerfile
password:
from_secret: docker_password
repo: xoxys/ansible-doctor
username:
from_secret: docker_username
when:
ref:
- "refs/tags/**"
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- security
--- ---
kind: pipeline kind: pipeline
name: notifications name: notifications
@ -208,10 +367,13 @@ trigger:
- failure - failure
depends_on: depends_on:
- build - build-package
- build-container-amd64
- build-container-arm64
- build-container-arm
--- ---
kind: signature kind: signature
hmac: e897b8b84daf4a8018ee518bbb8e4135677b3b722bb470e8824d8c70d33ccb66 hmac: 12d53a8a9e0879658adffbf3e8fd079859ecd1af3fdf000a087c51047b9ac839
... ...