Disable CI deploys on master (#4690)

This commit is contained in:
Maxime Guyot 2019-05-02 13:20:20 -06:00 committed by Kubernetes Prow Robot
parent 73885d3b9e
commit 24b6698cc9
3 changed files with 21 additions and 65 deletions

View file

@ -20,6 +20,8 @@
<<: *gce_variables <<: *gce_variables
tags: tags:
- gce - gce
except: ['triggers']
only: [/^pr-.*$/]
.centos_weave_kubeadm_variables: &centos_weave_kubeadm_variables .centos_weave_kubeadm_variables: &centos_weave_kubeadm_variables
# stage: deploy-part1 # stage: deploy-part1
@ -36,8 +38,6 @@ gce_ubuntu18-flannel-aio:
stage: deploy-part1 stage: deploy-part1
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: [/^pr-.*$/]
### PR JOBS PART2 ### PR JOBS PART2
@ -45,15 +45,11 @@ gce_coreos-calico-aio:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: on_success when: on_success
except: ['triggers']
only: [/^pr-.*$/]
gce_centos7-flannel-addons: gce_centos7-flannel-addons:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: [/^pr-.*$/]
### MANUAL JOBS ### MANUAL JOBS
@ -64,36 +60,42 @@ gce_centos-weave-kubeadm-sep:
<<: *centos_weave_kubeadm_variables <<: *centos_weave_kubeadm_variables
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_ubuntu-weave-sep: gce_ubuntu-weave-sep:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: manual when: manual
only: ['triggers'] only: ['triggers']
except: []
gce_coreos-calico-sep-triggers: gce_coreos-calico-sep-triggers:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_ubuntu-canal-ha-triggers: gce_ubuntu-canal-ha-triggers:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_centos7-flannel-addons-triggers: gce_centos7-flannel-addons-triggers:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_ubuntu-weave-sep-triggers: gce_ubuntu-weave-sep-triggers:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
# More builds for PRs/merges (manual) and triggers (auto) # More builds for PRs/merges (manual) and triggers (auto)
@ -102,27 +104,23 @@ gce_ubuntu-canal-ha:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_ubuntu-canal-kubeadm: gce_ubuntu-canal-kubeadm:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_ubuntu-canal-kubeadm-triggers: gce_ubuntu-canal-kubeadm-triggers:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_ubuntu-flannel-ha: gce_ubuntu-flannel-ha:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
gce_centos-weave-kubeadm-triggers: gce_centos-weave-kubeadm-triggers:
stage: deploy-gce stage: deploy-gce
@ -131,99 +129,87 @@ gce_centos-weave-kubeadm-triggers:
<<: *centos_weave_kubeadm_variables <<: *centos_weave_kubeadm_variables
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_ubuntu-contiv-sep: gce_ubuntu-contiv-sep:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_coreos-cilium: gce_coreos-cilium:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_ubuntu18-cilium-sep: gce_ubuntu18-cilium-sep:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_rhel7-weave: gce_rhel7-weave:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_rhel7-weave-triggers: gce_rhel7-weave-triggers:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_debian9-calico-upgrade: gce_debian9-calico-upgrade:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_debian9-calico-triggers: gce_debian9-calico-triggers:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_coreos-canal: gce_coreos-canal:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_coreos-canal-triggers: gce_coreos-canal-triggers:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_rhel7-canal-sep: gce_rhel7-canal-sep:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_rhel7-canal-sep-triggers: gce_rhel7-canal-sep-triggers:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_centos7-calico-ha: gce_centos7-calico-ha:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_centos7-calico-ha-triggers: gce_centos7-calico-ha-triggers:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
gce_centos7-kube-router: gce_centos7-kube-router:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_centos7-multus-calico: gce_centos7-multus-calico:
stage: deploy-gce stage: deploy-gce
@ -231,34 +217,24 @@ gce_centos7-multus-calico:
variables: variables:
<<: *centos7_multus_calico_variables <<: *centos7_multus_calico_variables
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_opensuse-canal: gce_opensuse-canal:
stage: deploy-gce stage: deploy-gce
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
# no triggers yet https://github.com/kubernetes-incubator/kargo/issues/613 # no triggers yet https://github.com/kubernetes-incubator/kargo/issues/613
gce_coreos-alpha-weave-ha: gce_coreos-alpha-weave-ha:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_coreos-kube-router: gce_coreos-kube-router:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
gce_ubuntu-kube-router-sep: gce_ubuntu-kube-router-sep:
stage: deploy-special stage: deploy-special
<<: *gce <<: *gce
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]

View file

@ -9,6 +9,8 @@
<<: *packet_variables <<: *packet_variables
tags: tags:
- packet - packet
only: [/^pr-.*$/]
except: ['triggers']
.test-upgrade: &test-upgrade .test-upgrade: &test-upgrade
variables: variables:
@ -18,8 +20,6 @@ packet_ubuntu18-calico-aio:
stage: deploy-part1 stage: deploy-part1
<<: *packet <<: *packet
when: on_success when: on_success
except: ['triggers']
only: ['master', /^pr-.*$/]
# ### PR JOBS PART2 # ### PR JOBS PART2
@ -27,8 +27,6 @@ packet_centos7-flannel-addons:
stage: deploy-part2 stage: deploy-part2
<<: *packet <<: *packet
when: on_success when: on_success
except: ['triggers']
only: [/^pr-.*$/]
# ### MANUAL JOBS # ### MANUAL JOBS
@ -37,12 +35,14 @@ packet_centos-weave-kubeadm-sep:
<<: *packet <<: *packet
when: on_success when: on_success
only: ['triggers'] only: ['triggers']
except: []
packet_ubuntu-weave-sep: packet_ubuntu-weave-sep:
stage: deploy-part2 stage: deploy-part2
<<: *packet <<: *packet
when: manual when: manual
only: ['triggers'] only: ['triggers']
except: []
# # More builds for PRs/merges (manual) and triggers (auto) # # More builds for PRs/merges (manual) and triggers (auto)
@ -50,74 +50,53 @@ packet_ubuntu-canal-ha:
stage: deploy-special stage: deploy-special
<<: *packet <<: *packet
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
packet_ubuntu-canal-kubeadm: packet_ubuntu-canal-kubeadm:
stage: deploy-part2 stage: deploy-part2
<<: *packet <<: *packet
when: on_success when: on_success
except: ['triggers']
only: ['master', /^pr-.*$/]
packet_ubuntu-flannel-ha: packet_ubuntu-flannel-ha:
stage: deploy-part2 stage: deploy-part2
<<: *packet <<: *packet
when: on_success when: on_success
except: ['triggers']
packet_ubuntu-contiv-sep: packet_ubuntu-contiv-sep:
stage: deploy-special stage: deploy-special
<<: *packet <<: *packet
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
packet_ubuntu18-cilium-sep: packet_ubuntu18-cilium-sep:
stage: deploy-special stage: deploy-special
<<: *packet <<: *packet
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
packet_debian9-calico-upgrade: packet_debian9-calico-upgrade:
stage: deploy-part2 stage: deploy-part2
<<: *packet <<: *packet
when: on_success when: on_success
except: ['triggers']
only: ['master', /^pr-.*$/]
packet_centos7-calico-ha: packet_centos7-calico-ha:
stage: deploy-part2 stage: deploy-part2
<<: *packet <<: *packet
when: on_success when: on_success
except: ['triggers']
only: ['master', /^pr-.*$/]
packet_centos7-kube-router: packet_centos7-kube-router:
stage: deploy-special stage: deploy-special
<<: *packet <<: *packet
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
packet_centos7-multus-calico: packet_centos7-multus-calico:
stage: deploy-part2 stage: deploy-part2
<<: *packet <<: *packet
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
packet_opensuse-canal: packet_opensuse-canal:
stage: deploy-part2 stage: deploy-part2
<<: *packet <<: *packet
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]
packet_ubuntu-kube-router-sep: packet_ubuntu-kube-router-sep:
stage: deploy-special stage: deploy-special
<<: *packet <<: *packet
when: manual when: manual
except: ['triggers']
only: ['master', /^pr-.*$/]

View file

@ -20,11 +20,11 @@
- echo "$PACKET_PRIVATE_KEY" | base64 -d > ~/.ssh/id_rsa - echo "$PACKET_PRIVATE_KEY" | base64 -d > ~/.ssh/id_rsa
- chmod 400 ~/.ssh/id_rsa - chmod 400 ~/.ssh/id_rsa
- echo "$PACKET_PUBLIC_KEY" | base64 -d > ~/.ssh/id_rsa.pub - echo "$PACKET_PUBLIC_KEY" | base64 -d > ~/.ssh/id_rsa.pub
only: ['master', /^pr-.*$/]
.terraform_validate: .terraform_validate:
extends: .terraform_install extends: .terraform_install
stage: unit-tests stage: unit-tests
only: ['master', /^pr-.*$/]
script: script:
- terraform validate -var-file=cluster.tf ../../contrib/terraform/$PROVIDER - terraform validate -var-file=cluster.tf ../../contrib/terraform/$PROVIDER
- terraform fmt -check -diff ../../contrib/terraform/$PROVIDER - terraform fmt -check -diff ../../contrib/terraform/$PROVIDER
@ -33,6 +33,7 @@
extends: .terraform_install extends: .terraform_install
stage: deploy-part2 stage: deploy-part2
when: manual when: manual
only: [/^pr-.*$/]
variables: variables:
ANSIBLE_INVENTORY_UNPARSED_FAILED: "true" ANSIBLE_INVENTORY_UNPARSED_FAILED: "true"
script: script: