fix wrong conditions

This commit is contained in:
Robert Kaussow 2020-09-05 18:15:44 +02:00
parent c9e074f724
commit 186c3d39ff
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 20 additions and 1 deletions

View File

@ -340,6 +340,9 @@ local PipelineNotifications = {
password: { from_secret: 'docker_password' }, password: { from_secret: 'docker_password' },
spec: 'docker/manifest.tmpl', spec: 'docker/manifest.tmpl',
}, },
when: {
status: ['success'],
},
}, },
{ {
image: 'plugins/manifest', image: 'plugins/manifest',
@ -351,6 +354,9 @@ local PipelineNotifications = {
password: { from_secret: 'quay_password' }, password: { from_secret: 'quay_password' },
spec: 'docker/manifest-quay.tmpl', spec: 'docker/manifest-quay.tmpl',
}, },
when: {
status: ['success'],
},
}, },
{ {
name: 'pushrm-dockerhub', name: 'pushrm-dockerhub',
@ -396,6 +402,9 @@ local PipelineNotifications = {
username: { from_secret: 'matrix_username' }, username: { from_secret: 'matrix_username' },
password: { from_secret: 'matrix_password' }, password: { from_secret: 'matrix_password' },
}, },
when: {
status: ['success', 'failure'],
},
}, },
], ],
depends_on: [ depends_on: [

View File

@ -481,6 +481,9 @@ steps:
spec: docker/manifest.tmpl spec: docker/manifest.tmpl
username: username:
from_secret: docker_username from_secret: docker_username
when:
status:
- success
- name: manifest-quay - name: manifest-quay
image: plugins/manifest image: plugins/manifest
@ -492,6 +495,9 @@ steps:
spec: docker/manifest-quay.tmpl spec: docker/manifest-quay.tmpl
username: username:
from_secret: quay_username from_secret: quay_username
when:
status:
- success
- name: pushrm-dockerhub - name: pushrm-dockerhub
pull: always pull: always
@ -532,6 +538,10 @@ steps:
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}" template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
username: username:
from_secret: matrix_username from_secret: matrix_username
when:
status:
- success
- failure
trigger: trigger:
ref: ref:
@ -546,6 +556,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 5db60cc32b8f71807d98da64e9545392e4b5bb171a64315190b080fedd855138 hmac: 73b23f5d961d3e6c17837449c948e9c367ca1283ae709786538cd99ab41a99a5
... ...