Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #532 from Conky5/docker-registry-staging
Browse files Browse the repository at this point in the history
Staging image testing
  • Loading branch information
Conky5 authored Mar 24, 2020
2 parents 8dc7f62 + c852fe4 commit 2cdf960
Show file tree
Hide file tree
Showing 13 changed files with 441 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .ci/jobs/elastic+helm-charts+staging+cluster-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
- job:
name: elastic+helm-charts+staging+cluster-cleanup
display-name: elastic / helm-charts - staging - cluster cleanup
description: staging - cluster cleanup
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
scm:
- git:
wipe-workspace: 'True'
axes:
- axis:
type: slave
name: label
values:
- docker&&virtual
- axis:
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
builders:
- shell: |-
#!/usr/local/bin/runbld
set -euo pipefail
source /usr/local/bin/bash_standard_lib.sh
set +x
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
export VAULT_TOKEN
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}"
cd helpers/terraform/
./in-docker make destroy KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name}
40 changes: 40 additions & 0 deletions .ci/jobs/elastic+helm-charts+staging+cluster-creation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
- job:
name: elastic+helm-charts+staging+cluster-creation
display-name: elastic / helm-charts - staging - cluster creation
description: staging - cluster creation
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
scm:
- git:
wipe-workspace: 'True'
axes:
- axis:
type: slave
name: label
values:
- docker&&virtual
- axis:
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
builders:
- shell: |-
#!/usr/local/bin/runbld
set -euo pipefail
source /usr/local/bin/bash_standard_lib.sh
set +x
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
export VAULT_TOKEN
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}"
cd helpers/terraform/
./in-docker make up KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name}
./in-docker make k8s-staging-registry KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name}
45 changes: 45 additions & 0 deletions .ci/jobs/elastic+helm-charts+staging+integration-apm-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
- job:
name: elastic+helm-charts+staging+integration-apm-server
display-name: elastic / helm-charts - staging - integration apm-server
description: staging - integration apm-server
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
scm:
- git:
wipe-workspace: 'True'
axes:
- axis:
type: slave
name: label
values:
- docker&&virtual
- axis:
type: yaml
name: APM_SERVER_SUITE
filename: helpers/matrix.yml
- axis:
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
builders:
- shell: |-
#!/usr/local/bin/runbld
set -euo pipefail
source /usr/local/bin/bash_standard_lib.sh
set +x
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
export VAULT_TOKEN
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
env BUMPER_VERSION_7="$BUILD_ID" BUMPER_USE_STAGING_IMAGES="true" ./helpers/bumper.py
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${APM_SERVER_SUITE} CHART=apm-server
45 changes: 45 additions & 0 deletions .ci/jobs/elastic+helm-charts+staging+integration-elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
- job:
name: elastic+helm-charts+staging+integration-elasticsearch
display-name: elastic / helm-charts - staging - integration elasticsearch
description: staging - integration elasticsearch
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
scm:
- git:
wipe-workspace: 'True'
axes:
- axis:
type: slave
name: label
values:
- docker&&virtual
- axis:
type: yaml
name: ES_SUITE
filename: helpers/matrix.yml
- axis:
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
builders:
- shell: |-
#!/usr/local/bin/runbld
set -euo pipefail
source /usr/local/bin/bash_standard_lib.sh
set +x
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
export VAULT_TOKEN
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
env BUMPER_VERSION_7="$BUILD_ID" BUMPER_USE_STAGING_IMAGES="true" ./helpers/bumper.py
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${ES_SUITE} CHART=elasticsearch
45 changes: 45 additions & 0 deletions .ci/jobs/elastic+helm-charts+staging+integration-filebeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
- job:
name: elastic+helm-charts+staging+integration-filebeat
display-name: elastic / helm-charts - staging - integration filebeat
description: staging - integration filebeat
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
scm:
- git:
wipe-workspace: 'True'
axes:
- axis:
type: slave
name: label
values:
- docker&&virtual
- axis:
type: yaml
name: FILEBEAT_SUITE
filename: helpers/matrix.yml
- axis:
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
builders:
- shell: |-
#!/usr/local/bin/runbld
set -euo pipefail
source /usr/local/bin/bash_standard_lib.sh
set +x
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
export VAULT_TOKEN
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
env BUMPER_VERSION_7="$BUILD_ID" BUMPER_USE_STAGING_IMAGES="true" ./helpers/bumper.py
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${FILEBEAT_SUITE} CHART=filebeat
45 changes: 45 additions & 0 deletions .ci/jobs/elastic+helm-charts+staging+integration-kibana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
- job:
name: elastic+helm-charts+staging+integration-kibana
display-name: elastic / helm-charts - staging - integration kibana
description: staging - integration kibana
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
scm:
- git:
wipe-workspace: 'True'
axes:
- axis:
type: slave
name: label
values:
- docker&&virtual
- axis:
type: yaml
name: KIBANA_SUITE
filename: helpers/matrix.yml
- axis:
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
builders:
- shell: |-
#!/usr/local/bin/runbld
set -euo pipefail
source /usr/local/bin/bash_standard_lib.sh
set +x
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
export VAULT_TOKEN
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
env BUMPER_VERSION_7="$BUILD_ID" BUMPER_USE_STAGING_IMAGES="true" ./helpers/bumper.py
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${KIBANA_SUITE} CHART=kibana
45 changes: 45 additions & 0 deletions .ci/jobs/elastic+helm-charts+staging+integration-logstash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
- job:
name: elastic+helm-charts+staging+integration-logstash
display-name: elastic / helm-charts - staging - integration logstash
description: staging - integration logstash
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
scm:
- git:
wipe-workspace: 'True'
axes:
- axis:
type: slave
name: label
values:
- docker&&virtual
- axis:
type: yaml
name: LOGSTASH_SUITE
filename: helpers/matrix.yml
- axis:
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
builders:
- shell: |-
#!/usr/local/bin/runbld
set -euo pipefail
source /usr/local/bin/bash_standard_lib.sh
set +x
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
export VAULT_TOKEN
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
env BUMPER_VERSION_7="$BUILD_ID" BUMPER_USE_STAGING_IMAGES="true" ./helpers/bumper.py
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${LOGSTASH_SUITE} CHART=logstash
45 changes: 45 additions & 0 deletions .ci/jobs/elastic+helm-charts+staging+integration-metricbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
- job:
name: elastic+helm-charts+staging+integration-metricbeat
display-name: elastic / helm-charts - staging - integration metricbeat
description: staging - integration metricbeat
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
scm:
- git:
wipe-workspace: 'True'
axes:
- axis:
type: slave
name: label
values:
- docker&&virtual
- axis:
type: yaml
name: METRICBEAT_SUITE
filename: helpers/matrix.yml
- axis:
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
builders:
- shell: |-
#!/usr/local/bin/runbld
set -euo pipefail
source /usr/local/bin/bash_standard_lib.sh
set +x
VAULT_TOKEN=$(retry 5 vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
export VAULT_TOKEN
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x
env BUMPER_VERSION_7="$BUILD_ID" BUMPER_USE_STAGING_IMAGES="true" ./helpers/bumper.py
cluster_name="helm-${KUBERNETES_VERSION//./}-${BUILD_ID//./-}"
cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${METRICBEAT_SUITE} CHART=metricbeat
Loading

0 comments on commit 2cdf960

Please sign in to comment.