Add delete preview-env / auto-deploy a staging
This commit is contained in:
parent
1d0313229e
commit
a55693f967
10 changed files with 136 additions and 91 deletions
|
@ -1,37 +0,0 @@
|
|||
---
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: quay-dev-initdb
|
||||
spec:
|
||||
activeDeadlineSeconds: 100
|
||||
template:
|
||||
metadata:
|
||||
name: quay-dev-initdb
|
||||
spec:
|
||||
containers:
|
||||
- name: quay
|
||||
image: quay.io/quay/quay-ci:master
|
||||
env:
|
||||
- name: TEST_DATABASE_URI
|
||||
value: "postgres://"
|
||||
- name: SKIP_DB_SCHEMA
|
||||
value: "true"
|
||||
command:
|
||||
- venv/bin/python
|
||||
- initdb.py
|
||||
volumeMounts:
|
||||
- name: configvolume
|
||||
readOnly: false
|
||||
mountPath: /conf/stack
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 500Mi
|
||||
imagePullSecrets:
|
||||
- name: coreos-pull-secret
|
||||
volumes:
|
||||
- name: configvolume
|
||||
secret:
|
||||
secretName: quay-enterprise-config-secret
|
||||
restartPolicy: Never
|
|
@ -12,10 +12,10 @@ local local_stack_config = (
|
|||
);
|
||||
|
||||
# Merge all config together
|
||||
# Precedence: package-config (vars.config) < local stack/config.yaml < base-config (vars.base-config)
|
||||
# Precedence: local stack/config.yaml < package-config (vars.config) < base-config (vars.base-config)
|
||||
local config_yaml = {'config.yaml': appr.b64encode(appr.to_yaml(
|
||||
vars.config +
|
||||
local_stack_config +
|
||||
vars.config +
|
||||
vars.base_config))};
|
||||
|
||||
# Merge stack files
|
||||
|
|
|
@ -56,7 +56,8 @@ deploy: [
|
|||
|
||||
{
|
||||
name: "quay/quay-app",
|
||||
variables: $.variables
|
||||
variables: $.variables,
|
||||
version: ":stable"
|
||||
},
|
||||
|
||||
# Deploy the initdb script
|
||||
|
|
Reference in a new issue