DEV-1114 dev -> devnso

qa
Sven Ketelsen 3 years ago
parent 435972d228
commit f3ac7dc83f

@ -45,25 +45,25 @@ lint-job:
- dind - dind
- harbor # 05.02.22 TODO some runners run into timeouts - harbor # 05.02.22 TODO some runners run into timeouts
.builder-job-dev: .builder-job-devnso:
extends: .builder-job extends: .builder-job
resource_group: dev resource_group: devnso
before_script: before_script:
- export STAGE=dev - export STAGE=devnso
only: only:
refs: refs:
- main - main
builder-job-dev-automatic: builder-job-devnso-automatic:
extends: .builder-job-dev extends: .builder-job-devnso
only: only:
changes: changes:
- pip-requirements - pip-requirements
- galaxy-requirements.yml - galaxy-requirements.yml
- ansible-builder/**/* - ansible-builder/**/*
builder-job-dev-manual: builder-job-devnso-manual:
extends: .builder-job-dev extends: .builder-job-devnso
when: manual when: manual
.builder-job-qa: .builder-job-qa:
@ -111,7 +111,7 @@ builder-job-prodnso-manual:
################################################################################## ##################################################################################
.run-ansible: .run-ansible:
image: dev-$AWX_EE_DOCKER_IMAGE_EXTERN:latest # hardcoded DEV Stage Image, couldn't find better option for now, since image name cant be set dynamically image: devnso-$AWX_EE_DOCKER_IMAGE_EXTERN:latest # hardcoded DEV Stage Image, couldn't find better option for now, since image name cant be set dynamically
tags: tags:
- dind - dind
- harbor # 05.02.22 TODO some runners run into timeouts - harbor # 05.02.22 TODO some runners run into timeouts
@ -147,11 +147,11 @@ builder-job-prodnso-manual:
except: except:
- schedules - schedules
run-setup-dev: run-setup-devnso:
extends: .run-setup extends: .run-setup
resource_group: dev resource_group: devnso
before_script: before_script:
- export STAGE=dev - export STAGE=devnso
- echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass - echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass
only: only:
- main - main
@ -237,12 +237,12 @@ run-setup-demompmx:
- dind - dind
- harbor # 05.02.22 TODO some runners run into timeouts - harbor # 05.02.22 TODO some runners run into timeouts
run-vpn-update-dev: run-vpn-update-devnso:
extends: .vpn-config-update extends: .vpn-config-update
# A resource group ensures a job is mutually exclusive across different pipelines for the same project. # A resource group ensures a job is mutually exclusive across different pipelines for the same project.
resource_group: dev resource_group: devnso
before_script: before_script:
- export STAGE=dev - export STAGE=devnso
- echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass - echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass
only: only:
- main - main
@ -301,11 +301,11 @@ run-vpn-update-prodnso:
except: except:
- schedules - schedules
run-management-update-dev: run-management-update-devnso:
extends: .run-management-update extends: .run-management-update
resource_group: dev resource_group: devnso
before_script: before_script:
- export STAGE=dev - export STAGE=devnso
- echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass - echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass
only: only:
- main - main
@ -362,12 +362,12 @@ run-management-update-demompmx:
- ssh-add -L - ssh-add -L
timeout: 2h timeout: 2h
run-patchday-elastic-dev: run-patchday-elastic-devnso:
extends: .run-patchday extends: .run-patchday
stage: run-patchday-elastic-postgres stage: run-patchday-elastic-postgres
resource_group: dev resource_group: devnso
script: script:
- export STAGE=dev - export STAGE=devnso
- export HETZNER_LABEL_SELECTOR="stage=${STAGE}" - export HETZNER_LABEL_SELECTOR="stage=${STAGE}"
- echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass - echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass
- ansible-playbook -i stage-${STAGE}-netgo-hcloud.yml patchday.yml --vault-password-file=/tmp/vault-pass -u gitlabci --limit 'elastic' - ansible-playbook -i stage-${STAGE}-netgo-hcloud.yml patchday.yml --vault-password-file=/tmp/vault-pass -u gitlabci --limit 'elastic'
@ -376,12 +376,12 @@ run-patchday-elastic-dev:
rules: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "main" - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "main"
run-patchday-postgres-dev: run-patchday-postgres-devnso:
extends: .run-patchday extends: .run-patchday
stage: run-patchday-elastic-postgres stage: run-patchday-elastic-postgres
resource_group: dev resource_group: devnso
script: script:
- export STAGE=dev - export STAGE=devnso
- export HETZNER_LABEL_SELECTOR="stage=${STAGE}" - export HETZNER_LABEL_SELECTOR="stage=${STAGE}"
- echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass - echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass
- ansible-playbook -i stage-${STAGE}-netgo-hcloud.yml patchday.yml --vault-password-file=/tmp/vault-pass -u gitlabci --limit 'postgres' - ansible-playbook -i stage-${STAGE}-netgo-hcloud.yml patchday.yml --vault-password-file=/tmp/vault-pass -u gitlabci --limit 'postgres'
@ -390,12 +390,12 @@ run-patchday-postgres-dev:
rules: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "main" - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "main"
run-patchday-all-dev: run-patchday-all-devnso:
extends: .run-patchday extends: .run-patchday
stage: run-patchday-all-k8s stage: run-patchday-all-k8s
resource_group: dev resource_group: devnso
script: script:
- export STAGE=dev - export STAGE=devnso
- export HETZNER_LABEL_SELECTOR="stage=${STAGE}" - export HETZNER_LABEL_SELECTOR="stage=${STAGE}"
- echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass - echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass
- ansible-playbook -i stage-${STAGE}-netgo-hcloud.yml patchday.yml --vault-password-file=/tmp/vault-pass -u gitlabci --limit 'all:!elastic:!postgres:!k8s_cluster' - ansible-playbook -i stage-${STAGE}-netgo-hcloud.yml patchday.yml --vault-password-file=/tmp/vault-pass -u gitlabci --limit 'all:!elastic:!postgres:!k8s_cluster'
@ -404,12 +404,12 @@ run-patchday-all-dev:
rules: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "main" - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "main"
run-patchday-k8s-dev: run-patchday-k8s-devnso:
extends: .run-patchday extends: .run-patchday
stage: run-patchday-all-k8s stage: run-patchday-all-k8s
resource_group: dev resource_group: devnso
script: script:
- export STAGE=dev - export STAGE=devnso
- export HETZNER_LABEL_SELECTOR="stage=${STAGE}" - export HETZNER_LABEL_SELECTOR="stage=${STAGE}"
- echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass - echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass
- ansible-playbook -i stage-${STAGE}-netgo-hcloud.yml patchday.yml --vault-password-file=/tmp/vault-pass -u gitlabci --limit 'k8s_cluster' - ansible-playbook -i stage-${STAGE}-netgo-hcloud.yml patchday.yml --vault-password-file=/tmp/vault-pass -u gitlabci --limit 'k8s_cluster'
@ -638,11 +638,11 @@ run-patchday-k8s-demompmx:
except: except:
- schedules - schedules
run-hcloud-firewall-dev: run-hcloud-firewall-devnso:
extends: .run-hcloud-firewall extends: .run-hcloud-firewall
resource_group: dev resource_group: devnso
before_script: before_script:
- export STAGE=dev - export STAGE=devnso
- echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass - echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass
only: only:
- main - main
@ -709,7 +709,7 @@ run-setup-digitalocean:
extends: .run-ansible extends: .run-ansible
stage: run-setup stage: run-setup
before_script: before_script:
- export STAGE=dev - export STAGE=devnso
- echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass - echo "${ANSIBLE_VAULT_PASS_DEV}" > /tmp/vault-pass
script: script:
- "command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )" - "command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )"
@ -728,7 +728,7 @@ run-setup-digitalocean:
except: except:
- schedules - schedules
run-patchday-dev-digitalocean: run-patchday-devnso-digitalocean:
extends: .run-ansible extends: .run-ansible
stage: run-patchday-all-k8s stage: run-patchday-all-k8s
before_script: before_script:

Loading…
Cancel
Save