Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
10a60cc2
Commit
10a60cc2
authored
3 years ago
by
Ilia Eriomenco
Browse files
Options
Downloads
Patches
Plain Diff
add .gitlab-ci.elife.k8s.yml
parent
1feb19e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.elife.k8s.yml
+57
-0
57 additions, 0 deletions
.gitlab-ci.elife.k8s.yml
.gitlab-ci.yml
+10
-0
10 additions, 0 deletions
.gitlab-ci.yml
with
67 additions
and
0 deletions
.gitlab-ci.elife.k8s.yml
0 → 100644
+
57
−
0
View file @
10a60cc2
variables
:
IMAGE_ORG
:
kotahi
IMAGE_NAME
:
kotahi-elife
AWS_ACCESS_KEY_ID
:
$ELIFE_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
:
$ELIFE_AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION
:
$ELIFE_AWS_DEFAULT_REGION
ELIFE_CLUSTER_NAME
:
eks-elife-kotahi
stages
:
#- build
-
deploy
# build:
# image: docker:20.10.5
# variables:
# DOCKER_BUILDKIT: 1
# services:
# - docker:20.10.5-dind
# stage: build
# before_script:
# - cp app/brand-instances-configs/elife.json app/brandConfig.json
# script:
# - |
# if [ -z "$DOCKERHUB_USERNAME_ELIFE" ] || [ -z "$DOCKERHUB_PASSWORD_ELIFE" ]; then echo "Not pushing" && exit 0; fi
# docker login -u $DOCKERHUB_USERNAME_ELIFE -p $DOCKERHUB_PASSWORD_ELIFE
# docker pull $IMAGE_ORG/$IMAGE_NAME:latest || true
# docker build \
# --build-arg instance_name=elife \
# --build-arg public_client_host=elife.kotahi.cloud \
# --build-arg public_client_port=443 \
# --build-arg public_client_protocol=https \
# --file ./Dockerfile-production \
# --cache-from $CI_REGISTRY_IMAGE:latest \
# --tag $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA \
# --tag $IMAGE_ORG/$IMAGE_NAME:latest .
# docker build --build-arg instance_name=elife --file ./Dockerfile-ci --cache-from $IMAGE_ORG/$IMAGE_NAME-dev:latest --tag $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA --tag $IMAGE_ORG/$IMAGE_NAME-dev:latest .
# docker push $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
# docker push $IMAGE_ORG/$IMAGE_NAME:latest
# docker push $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA
# docker push $IMAGE_ORG/$IMAGE_NAME-dev:latest
deploy
:
stage
:
deploy
image
:
bitnami/kubectl:latest
environment
:
production
script
:
-
|
#aws --region=$AWS_DEFAULT_REGION eks update-kubeconfig --name $ELIFE_CLUSTER_NAME --kubeconfig ${ELIFE_KUBECONFIG}
kubectl config --kubeconfig=${ELIFE_KUBECONFIG} set-cluster development --server=${ELIFE_K8S_CLUSTER_HOST} --certificate-authority=${ELIFE_K8S_CLUSTER_CA_CERTIFICATE}
kubectl cluster-info
# helm repo add kotahi https://charts.bitnami.com/bitnami
# helm dependency build helm/elife-kotahi
# helm upgrade -i elife-kotahi \
# --set hostname=k8s.kotahi.cloud \
# --wait \
# helm/elife-kotahi
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
10
−
0
View file @
10a60cc2
...
@@ -11,6 +11,16 @@ elife-pipeline:
...
@@ -11,6 +11,16 @@ elife-pipeline:
-
local
:
.gitlab-ci.elife.yml
-
local
:
.gitlab-ci.elife.yml
strategy
:
depend
strategy
:
depend
elife-k8s-pipeline
:
only
:
refs
:
-
main
stage
:
run-pipeline
trigger
:
include
:
-
local
:
.gitlab-ci.elife.k8s.yml
strategy
:
depend
ncrc-pipeline
:
ncrc-pipeline
:
only
:
only
:
refs
:
refs
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment