Skip to content
Snippets Groups Projects
Commit 78aecb3c authored by Gabor Raz's avatar Gabor Raz
Browse files

feat: change to next-kubernetes

parent 1bba0c75
No related branches found
No related tags found
No related merge requests found
Pipeline #67723 passed
# Meteor-kubernetes # Next-kubernetes
This is an extension of https://git.panter.ch/gitlab-ci/kubernetes-base This is an extension of https://git.panter.ch/gitlab-ci/kubernetes-base
that builds meteor-apps. that builds Next-apps.
## Usage: ## Usage:
``` ```
# on top of your gitlab-ci.yml # on top of your gitlab-ci.yml
include: include:
- project: gitlab-ci/meteor-kubernetes - project: gitlab-ci/next-kubernetes
ref: v1.0.0 ref: v1.0.0
file: meteor-kubernetes.yml file: next-kubernetes.yml
variables: variables:
CUSTOMER_NAME: pan CUSTOMER_NAME: pan
APP_NAME: avatar APP_NAME: avatar
CLUSTER_NAME: production CLUSTER_NAME: production
# meteors specific:
MONGODB_ENABLED: 'true' # whether to create a mongobd
WORKER_ENABLED: 'false' # whether to launch an additional pod which has WORKER_ENABLED env var. usefull for cronjobs and migrations
MONGODB_REPLICAS: '3' # how many mongodb-replicas it will launch on production. other envs have always 1
``` ```
...@@ -5,18 +5,10 @@ include: ...@@ -5,18 +5,10 @@ include:
app-build: app-build:
extends: .app-build extends: .app-build
script:
- cd $APP_PATH
- echo "add healthcheck package"
- meteor add panter:healthroute --allow-superuser
- meteor add qualia:prod-shell --allow-superuser
- echo "current path is $(pwd)"
- yarn
- echo "building into $CI_PROJECT_DIR"
- TOOL_NODE_FLAGS="--max_old_space_size=3584 --min_semi_space_size=8 --max_semi_space_size=256 --optimize_for_size" meteor build $CI_PROJECT_DIR --architecture os.linux.x86_64 --allow-superuser --server-only --directory
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/bundle - $CI_PROJECT_DIR/dist
- $CI_PROJECT_DIR/.next
.ensureDocker: &ensureDocker | .ensureDocker: &ensureDocker |
function ensureDockerfile() { function ensureDockerfile() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment