chore: use the correct condition for latest and edge pushes
This updates the drone conditions to push the latest tag only for pushes to the master branch. Additionally, the edge tag will be pushed only when the nightly cron is executed. Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
This commit is contained in:
parent
0a845b9b00
commit
e6a16d5572
54
.drone.yml
54
.drone.yml
@ -609,12 +609,10 @@ steps:
|
||||
- name: tmp
|
||||
path: /tmp
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
- promote
|
||||
- tag
|
||||
- cron
|
||||
- push
|
||||
depends_on:
|
||||
- basic-integration
|
||||
|
||||
@ -1272,12 +1270,10 @@ steps:
|
||||
- name: tmp
|
||||
path: /tmp
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
- promote
|
||||
- tag
|
||||
- cron
|
||||
- push
|
||||
depends_on:
|
||||
- basic-integration
|
||||
|
||||
@ -2063,12 +2059,10 @@ steps:
|
||||
- name: tmp
|
||||
path: /tmp
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
- promote
|
||||
- tag
|
||||
- cron
|
||||
- push
|
||||
depends_on:
|
||||
- basic-integration
|
||||
|
||||
@ -2230,11 +2224,8 @@ steps:
|
||||
- name: tmp
|
||||
path: /tmp
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
- promote
|
||||
- tag
|
||||
cron:
|
||||
- nightly
|
||||
depends_on:
|
||||
- conformance-aws
|
||||
- conformance-gcp
|
||||
@ -2888,12 +2879,10 @@ steps:
|
||||
- name: tmp
|
||||
path: /tmp
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
- promote
|
||||
- tag
|
||||
- cron
|
||||
- push
|
||||
depends_on:
|
||||
- basic-integration
|
||||
|
||||
@ -3055,11 +3044,8 @@ steps:
|
||||
- name: tmp
|
||||
path: /tmp
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
- promote
|
||||
- tag
|
||||
cron:
|
||||
- nightly
|
||||
depends_on:
|
||||
- conformance-aws
|
||||
- conformance-gcp
|
||||
@ -3713,12 +3699,10 @@ steps:
|
||||
- name: tmp
|
||||
path: /tmp
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
- promote
|
||||
- tag
|
||||
- cron
|
||||
- push
|
||||
depends_on:
|
||||
- basic-integration
|
||||
|
||||
|
@ -220,14 +220,12 @@ local push_latest = {
|
||||
commands: ['make login', 'make push-latest'],
|
||||
volumes: volumes.ForStep(),
|
||||
when: {
|
||||
event: {
|
||||
exclude: [
|
||||
'pull_request',
|
||||
'promote',
|
||||
'tag',
|
||||
'cron',
|
||||
],
|
||||
},
|
||||
branch: [
|
||||
'master',
|
||||
],
|
||||
event: [
|
||||
'push',
|
||||
],
|
||||
},
|
||||
depends_on: [basic_integration.name],
|
||||
};
|
||||
@ -333,13 +331,9 @@ local push_edge = {
|
||||
commands: ['make login', 'make push-edge'],
|
||||
volumes: volumes.ForStep(),
|
||||
when: {
|
||||
event: {
|
||||
exclude: [
|
||||
'pull_request',
|
||||
'promote',
|
||||
'tag',
|
||||
],
|
||||
},
|
||||
cron: [
|
||||
'nightly',
|
||||
],
|
||||
},
|
||||
depends_on: [conformance_aws.name, conformance_gcp.name],
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user