Verified Commit fb1fe3ad authored by blint's avatar blint 😶
Browse files

add staging options and kube

parent 3cc44129
...@@ -62,37 +62,46 @@ dockerhub: ...@@ -62,37 +62,46 @@ dockerhub:
- go.mod - go.mod
- Dockerfile - Dockerfile
production: staging:
stage: deploy stage: deploy
image: image:
name: docker.io/blintmester/base-helm-kubectl:1.0.1 name: docker.io/blintmester/base-helm-kubectl:1.0.1
entrypoint: [""] entrypoint: [""]
needs: needs:
- dockerhub - dockerhub
environment:
name: valkyrie
kubernetes:
namespace: becskasszasch-staging
before_script: before_script:
- echo $KUBECONFIG - echo $KUBECONFIG
- chmod 600 $KUBECONFIG - chmod 600 $KUBECONFIG
script: script:
- bash - bash
- cd "$CI_PROJECT_DIR"/k8s - cd "$CI_PROJECT_DIR"/k8s
- envsubst < values.yaml | helm upgrade --install --wait becskasszasch . -n apps --values - - envsubst < values.staging.yaml | helm upgrade --install --wait becskasszasch . -n becskasszasch-staging --values -
rules: rules:
- if: $CI_COMMIT_TAG - when: manual
when: manual
staging: production:
stage: deploy stage: deploy
image: image:
name: docker.io/blintmester/base-helm-kubectl:1.0.1 name: docker.io/blintmester/base-helm-kubectl:1.0.1
entrypoint: [""] entrypoint: [""]
needs: needs:
- dockerhub - dockerhub
environment:
name: valkyrie
kubernetes:
namespace: apps
before_script: before_script:
- echo $KUBECONFIG - echo $KUBECONFIG
- chmod 600 $KUBECONFIG - chmod 600 $KUBECONFIG
script: script:
- bash - bash
- cd "$CI_PROJECT_DIR"/k8s - cd "$CI_PROJECT_DIR"/k8s
- envsubst < values.yaml | helm upgrade --install --wait becskasszasch . -n becskasszasch-staging --values - - envsubst < values.yaml | helm upgrade --install --wait becskasszasch . -n apps --values -
rules: rules:
- when: manual - if: $CI_COMMIT_TAG
\ No newline at end of file when: manual
replicas: 1
Domain: staging.becskassza.kszk.bme.hu
CLIENTID: "${STAGING_CLIENTID}"
CLIENTSECRET: "${STAGING_CLIENTSECRET}"
POSTGRES: "${STAGING_POSTGRES}"
POSTGRES_PASS: "${STAGING_POSTGRES_PASS}"
POSTGRES_USER: "${STAGING_POSTGRES_USER}"
POSTGRES_DB: "${STAGING_POSTGRES_DB}"
Tag: "${CI_COMMIT_REF_NAME}"
# for local deploy Tag: "vx.y.z"
...@@ -9,4 +9,3 @@ POSTGRES_USER: "${POSTGRES_USER}" ...@@ -9,4 +9,3 @@ POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_DB: "${POSTGRES_DB}" POSTGRES_DB: "${POSTGRES_DB}"
Tag: "${CI_COMMIT_REF_NAME}" Tag: "${CI_COMMIT_REF_NAME}"
# for local deploy Tag: "vx.y.z" # for local deploy Tag: "vx.y.z"
REGISTRY_CONF: "${REGISTRY_CONF}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment