Merge pull request #828 from bogdando/triggers

Rework CI triggers/pipeline
This commit is contained in:
Antoine Legrand 2016-12-27 15:20:42 +01:00 committed by GitHub
commit 399cb9707a
3 changed files with 36 additions and 9 deletions

View file

@ -202,7 +202,7 @@ before_script:
CLUSTER_MODE: ha CLUSTER_MODE: ha
BOOTSTRAP_OS: coreos BOOTSTRAP_OS: coreos
# Builds for PRs only (auto) # Builds for PRs only (auto) and triggers (auto)
coreos-calico-sep: coreos-calico-sep:
stage: deploy-gce-part1 stage: deploy-gce-part1
<<: *job <<: *job
@ -214,6 +214,16 @@ coreos-calico-sep:
except: ['triggers'] except: ['triggers']
only: [/^pr-.*$/] only: [/^pr-.*$/]
coreos-calico-sep-triggers:
stage: deploy-gce-part1
<<: *job
<<: *gce
variables:
<<: *gce_variables
<<: *coreos_calico_sep_variables
when: on_success
only: ['triggers']
centos7-flannel: centos7-flannel:
stage: deploy-gce-part2 stage: deploy-gce-part2
<<: *job <<: *job
@ -225,6 +235,16 @@ centos7-flannel:
except: ['triggers'] except: ['triggers']
only: [/^pr-.*$/] only: [/^pr-.*$/]
centos7-flannel-triggers:
stage: deploy-gce-part1
<<: *job
<<: *gce
variables:
<<: *gce_variables
<<: *centos7_flannel_variables
when: on_success
only: ['triggers']
ubuntu-weave-sep: ubuntu-weave-sep:
stage: deploy-gce-special stage: deploy-gce-special
<<: *job <<: *job
@ -236,6 +256,16 @@ ubuntu-weave-sep:
except: ['triggers'] except: ['triggers']
only: [/^pr-.*$/] only: [/^pr-.*$/]
ubuntu-weave-sep-triggers:
stage: deploy-gce-part1
<<: *job
<<: *gce
variables:
<<: *gce_variables
<<: *ubuntu_weave_sep_variables
when: on_success
only: ['triggers']
# More builds for PRs/merges (manual) and triggers (auto) # More builds for PRs/merges (manual) and triggers (auto)
debian8-canal-ha: debian8-canal-ha:
stage: deploy-gce-part1 stage: deploy-gce-part1
@ -291,7 +321,7 @@ debian8-calico:
only: ['master', /^pr-.*$/] only: ['master', /^pr-.*$/]
debian8-calico-triggers: debian8-calico-triggers:
stage: deploy-gce-part2 stage: deploy-gce-part1
<<: *job <<: *job
<<: *gce <<: *gce
variables: variables:
@ -312,7 +342,7 @@ coreos-canal:
only: ['master', /^pr-.*$/] only: ['master', /^pr-.*$/]
coreos-canal-triggers: coreos-canal-triggers:
stage: deploy-gce-part2 stage: deploy-gce-part1
<<: *job <<: *job
<<: *gce <<: *gce
variables: variables:
@ -333,7 +363,7 @@ rhel7-canal-sep:
only: ['master', /^pr-.*$/,] only: ['master', /^pr-.*$/,]
rhel7-canal-sep-triggers: rhel7-canal-sep-triggers:
stage: deploy-gce-special stage: deploy-gce-part1
<<: *job <<: *job
<<: *gce <<: *gce
variables: variables:
@ -354,7 +384,7 @@ centos7-calico-ha:
only: ['master', /^pr-.*$/] only: ['master', /^pr-.*$/]
centos7-calico-ha-triggers: centos7-calico-ha-triggers:
stage: deploy-gce-special stage: deploy-gce-part1
<<: *job <<: *job
<<: *gce <<: *gce
variables: variables:

View file

@ -3,7 +3,7 @@
become: false become: false
gather_facts: no gather_facts: no
vars: vars:
cloud_machine_type: n1-standard-1 cloud_machine_type: g1-small
mode: default mode: default
tasks: tasks:

View file

@ -3,7 +3,6 @@
become: false become: false
gather_facts: no gather_facts: no
vars: vars:
cloud_machine_type: f1-micro
mode: default mode: default
tasks: tasks:
@ -22,8 +21,6 @@
- name: delete gce instances - name: delete gce instances
gce: gce:
instance_names: "{{instance_names}}" instance_names: "{{instance_names}}"
machine_type: "{{ cloud_machine_type }}"
preemptible: yes
image: "{{ cloud_image }}" image: "{{ cloud_image }}"
service_account_email: "{{ gce_service_account_email }}" service_account_email: "{{ gce_service_account_email }}"
pem_file: "{{ gce_pem_file | default(omit)}}" pem_file: "{{ gce_pem_file | default(omit)}}"