Commit 86e1623d authored by Yannick Buron's avatar Yannick Buron

kubernetes yaml

Signed-off-by: Yannick Buron's avatarYannick Buron <[email protected]>
parent c650e560
Pipeline #96782238 passed with stage
in 7 minutes and 23 seconds
......@@ -8,29 +8,29 @@ stages:
- test
- deploy
build-golang:
stage: build
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- printenv
- docker pull $CI_REGISTRY_IMAGE/customer:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE/go-factory:latest --tag $CI_REGISTRY_IMAGE/go-factory/$CI_COMMIT_REF_SLUG:latest -f go-factory.Dockerfile .
- docker push $CI_REGISTRY_IMAGE/go-factory/$CI_COMMIT_REF_SLUG:latest
build-admin:
stage: build
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- printenv
- docker pull $CI_REGISTRY_IMAGE/admin:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE/admin:latest --tag $CI_REGISTRY_IMAGE/admin/$CI_COMMIT_REF_SLUG:latest ./admin
- docker push $CI_REGISTRY_IMAGE/admin/$CI_COMMIT_REF_SLUG:latest
variables:
REACT_APP_GATEWAY_SERVICE_URL: https://api.$KUBE_INGRESS_BASE_DOMAIN/graphql
REACT_APP_HYDRA_CLUSTER_URL: https://hydra.$KUBE_INGRESS_BASE_DOMAIN
REACT_APP_DISABLE_AUTH: "False"
# build-golang:
# stage: build
# before_script:
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# script:
# - printenv
# - docker pull $CI_REGISTRY_IMAGE/customer:latest || true
# - docker build --cache-from $CI_REGISTRY_IMAGE/go-factory:latest --tag $CI_REGISTRY_IMAGE/go-factory/$CI_COMMIT_REF_SLUG:latest -f go-factory.Dockerfile .
# - docker push $CI_REGISTRY_IMAGE/go-factory/$CI_COMMIT_REF_SLUG:latest
# build-admin:
# stage: build
# before_script:
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# script:
# - printenv
# - docker pull $CI_REGISTRY_IMAGE/admin:latest || true
# - docker build --cache-from $CI_REGISTRY_IMAGE/admin:latest --tag $CI_REGISTRY_IMAGE/admin/$CI_COMMIT_REF_SLUG:latest ./admin
# - docker push $CI_REGISTRY_IMAGE/admin/$CI_COMMIT_REF_SLUG:latest
# variables:
# REACT_APP_GATEWAY_SERVICE_URL: https://api.$KUBE_INGRESS_BASE_DOMAIN/graphql
# REACT_APP_HYDRA_CLUSTER_URL: https://hydra.$KUBE_INGRESS_BASE_DOMAIN
# REACT_APP_DISABLE_AUTH: "False"
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: admin
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: customer
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: gateway
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: invoicing
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: login
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: product
......
Markdown is supported
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