Commit 4de895c4 authored by Bogdan Cochior's avatar Bogdan Cochior

ci: add review giles

parent 00476a97
Pipeline #11240 failed with stages
in 20 seconds
apiVersion: v1
kind: ConfigMap
metadata:
name: ${PACKAGE_NAME}-${CI_ENVIRONMENT_SLUG}-nodeconfig
namespace: ${KUBE_NAMESPACE}
labels:
env: ${CI_ENVIRONMENT_SLUG}
branch: "${CI_COMMIT_REF_NAME}"
data:
DB_USER: "${REVIEW_DB_USER}"
DB_PASS: "${REVIEW_DB_PASS}"
DB_HOST: "${REVIEW_DB_HOST}"
DATABASE: "${REVIEW_DB_NAME}"
CLIENT_BASE_URL: "${CI_ENVIRONMENT_URL}"
AWS_ACCESS_KEY_ID: "${REVIEW_AWS_ACCESS}"
AWS_S3_ACCESS_KEY: "${REVIEW_AWS_ACCESS}"
AWS_S3_BUCKET: "${REVIEW_S3_BUCKET}"
AWS_S3_REGION: "${AWS_S3_REGION}"
AWS_S3_SECRET_KEY: "${REVIEW_AWS_SECRET}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_SES_ACCESS_KEY: "${REVIEW_AWS_ACCESS}"
AWS_SES_REGION: "${AWS_SES_REGION}"
AWS_SES_SECRET_KEY: "${REVIEW_AWS_SECRET}"
FTP_HOST: "${FTP_HOST}"
FTP_PASSWORD: "${FTP_PASSWORD}"
FTP_USERNAME: "${FTP_USERNAME}"
ORCID_CLIENT_ID: "${ORCID_CLIENT_ID}"
ORCID_CLIENT_SECRET: "${ORCID_CLIENT_SECRET}"
PUBLONS_KEY: "${PUBLONS_KEY}"
GA_KEY: "${GA_KEY}"
apiVersion: v1
kind: ConfigMap
metadata:
name: ${PACKAGE_NAME}-${CI_ENVIRONMENT_SLUG}-nodeconfig
namespace: ${KUBE_NAMESPACE}
labels:
env: ${CI_ENVIRONMENT_SLUG}
branch: "${CI_COMMIT_REF_NAME}"
data:
DB_USER: "${DB_USER}"
DB_PASS: "${DB_PASS}"
DB_HOST: "${DB_HOST}"
DATABASE: "${DATABASE}"
CLIENT_BASE_URL: "${CI_ENVIRONMENT_URL}"
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_S3_ACCESS_KEY: "${AWS_S3_ACCESS_KEY}"
AWS_S3_BUCKET: "${AWS_S3_BUCKET}"
AWS_S3_REGION: "${AWS_S3_REGION}"
AWS_S3_SECRET_KEY: "${AWS_S3_SECRET_KEY}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_SES_ACCESS_KEY: "${AWS_SES_ACCESS_KEY}"
AWS_SES_REGION: "${AWS_SES_REGION}"
AWS_SES_SECRET_KEY: "${AWS_SES_SECRET_KEY}"
CI_ALB_NAME: "${CI_ALB_NAME}"
CI_ALB_URL: "${CI_ALB_URL}"
CI_CLUSTER_NAME: "${CI_CLUSTER_NAME}"
CI_CONTAINER_NAME: "${CI_CONTAINER_NAME}"
CI_ECR_URL: "${CI_ECR_URL}"
CI_PROJECT_NAME: "${CI_PROJECT_NAME}"
CI_REV_BUCKET: "${CI_REV_BUCKET}"
CI_SERVICE_NAME: "${CI_SERVICE_NAME}"
EMAIL_SENDER: "${EMAIL_SENDER}"
EMAIL_SENDING: "${EMAIL_SENDING}"
FTP_HOST: "${FTP_HOST}"
FTP_PASSWORD: "${FTP_PASSWORD}"
FTP_USERNAME: "${FTP_USERNAME}"
ORCID_CLIENT_ID: "${ORCID_CLIENT_ID}"
ORCID_CLIENT_SECRET: "${ORCID_CLIENT_SECRET}"
PUBLONS_KEY: "${PUBLONS_KEY}"
\ No newline at end of file
apiVersion: v1
kind: ConfigMap
metadata:
name: ${PACKAGE_NAME}-${CI_ENVIRONMENT_SLUG}-nodeconfig
namespace: ${KUBE_NAMESPACE}
labels:
env: ${CI_ENVIRONMENT_SLUG}
branch: "${CI_COMMIT_REF_NAME}"
data:
DB_USER: "${DB_USER}"
DB_PASS: "${DB_PASS}"
DB_HOST: "${DB_HOST}"
DATABASE: "${DATABASE}"
CLIENT_BASE_URL: "${CI_ENVIRONMENT_URL}"
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_S3_ACCESS_KEY: "${AWS_S3_ACCESS_KEY}"
AWS_S3_BUCKET: "${AWS_S3_BUCKET}"
AWS_S3_REGION: "${AWS_S3_REGION}"
AWS_S3_SECRET_KEY: "${AWS_S3_SECRET_KEY}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_SES_ACCESS_KEY: "${AWS_SES_ACCESS_KEY}"
AWS_SES_REGION: "${AWS_SES_REGION}"
AWS_SES_SECRET_KEY: "${AWS_SES_SECRET_KEY}"
CI_ALB_NAME: "${CI_ALB_NAME}"
CI_ALB_URL: "${CI_ALB_URL}"
CI_CLUSTER_NAME: "${CI_CLUSTER_NAME}"
CI_CONTAINER_NAME: "${CI_CONTAINER_NAME}"
CI_ECR_URL: "${CI_ECR_URL}"
CI_PROJECT_NAME: "${CI_PROJECT_NAME}"
CI_REV_BUCKET: "${CI_REV_BUCKET}"
CI_SERVICE_NAME: "${CI_SERVICE_NAME}"
EMAIL_SENDER: "${EMAIL_SENDER}"
EMAIL_SENDING: "${EMAIL_SENDING}"
FTP_HOST: "${FTP_HOST}"
FTP_PASSWORD: "${FTP_PASSWORD}"
FTP_USERNAME: "${FTP_USERNAME}"
ORCID_CLIENT_ID: "${ORCID_CLIENT_ID}"
ORCID_CLIENT_SECRET: "${ORCID_CLIENT_SECRET}"
PUBLONS_KEY: "${PUBLONS_KEY}"
\ No newline at end of file
apiVersion: v1
kind: ConfigMap
metadata:
name: ${PACKAGE_NAME}-${CI_ENVIRONMENT_SLUG}-nodeconfig
namespace: ${KUBE_NAMESPACE}
labels:
env: ${CI_ENVIRONMENT_SLUG}
branch: "${CI_COMMIT_REF_NAME}"
data:
DB_USER: "${DB_USER_STAGING}"
DB_PASS: "${DB_PASS_STAGING}"
DB_HOST: "${DB_HOST_STAGING}"
DATABASE: "${DATABASE_STAGING}"
CLIENT_BASE_URL: "${CI_ENVIRONMENT_URL}"
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_S3_ACCESS_KEY: "${AWS_S3_ACCESS_KEY}"
AWS_S3_BUCKET: "${AWS_S3_BUCKET}"
AWS_S3_REGION: "${AWS_S3_REGION}"
AWS_S3_SECRET_KEY: "${AWS_S3_SECRET_KEY}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_SES_ACCESS_KEY: "${AWS_SES_ACCESS_KEY}"
AWS_SES_REGION: "${AWS_SES_REGION}"
AWS_SES_SECRET_KEY: "${AWS_SES_SECRET_KEY}"
CI_ALB_NAME: "${CI_ALB_NAME}"
CI_ALB_URL: "${CI_ALB_URL}"
CI_CLUSTER_NAME: "${CI_CLUSTER_NAME}"
CI_CONTAINER_NAME: "${CI_CONTAINER_NAME}"
CI_ECR_URL: "${CI_ECR_URL}"
CI_PROJECT_NAME: "${CI_PROJECT_NAME}"
CI_REV_BUCKET: "${CI_REV_BUCKET}"
CI_SERVICE_NAME: "${CI_SERVICE_NAME}"
EMAIL_SENDER: "${EMAIL_SENDER}"
EMAIL_SENDING: "${EMAIL_SENDING}"
FTP_HOST: "${FTP_HOST}"
FTP_PASSWORD: "${FTP_PASSWORD}"
FTP_USERNAME: "${FTP_USERNAME}"
ORCID_CLIENT_ID: "${ORCID_CLIENT_ID}"
ORCID_CLIENT_SECRET: "${ORCID_CLIENT_SECRET}"
PUBLONS_KEY: "${PUBLONS_KEY}"
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ${CI_ENVIRONMENT_SLUG}
namespace: ${KUBE_NAMESPACE}
labels:
env: ${CI_ENVIRONMENT_SLUG}
branch: "${CI_COMMIT_REF_NAME}"
spec:
rules:
- host: ${CI_ENVIRONMENT_HOSTNAME}
http:
paths:
- path: /
backend:
serviceName: ${CI_ENVIRONMENT_SLUG}
servicePort: 3000
apiVersion: apps/v1beta1 #https://github.com/kubernetes/kubernetes/issues/55894
kind: Deployment
metadata:
name: ${CI_ENVIRONMENT_SLUG}
namespace: ${KUBE_NAMESPACE}
labels:
env: ${CI_ENVIRONMENT_SLUG}
branch: "${CI_COMMIT_REF_NAME}"
spec:
replicas: 1
selector:
matchLabels:
app: ${CI_ENVIRONMENT_SLUG}
template:
metadata:
annotations:
ci-last-updated: ${CI_COMMIT_SHA}
labels:
app: ${CI_ENVIRONMENT_SLUG}
spec:
containers:
- name: ${CI_ENVIRONMENT_SLUG}
image: ${IMAGE_REPO}:${IMAGE_TAG}
imagePullPolicy: Always
workingDir: /home/xpub/packages/app
command: ["node", "app.js"]
envFrom:
- configMapRef:
name: ${PACKAGE_NAME}-${CI_ENVIRONMENT_SLUG}-nodeconfig
ports:
- name: ${PACKAGE_NAME}
containerPort: 3000
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 3
timeoutSeconds: 2
readinessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 3
timeoutSeconds: 2
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: ${CI_ENVIRONMENT_SLUG}
namespace: ${KUBE_NAMESPACE}
labels:
env: ${CI_ENVIRONMENT_SLUG}
branch: "${CI_COMMIT_REF_NAME}"
spec:
type: ClusterIP
ports:
- protocol: TCP
port: 3000
targetPort: ${PACKAGE_NAME}
selector:
app: ${CI_ENVIRONMENT_SLUG}
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