Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
oetzit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
commul
oetzit
Commits
40bf9463
Commit
40bf9463
authored
3 years ago
by
Paolo.Brasolin
Browse files
Options
Downloads
Patches
Plain Diff
ci: #be sketch deploy jobs
parent
a4da2e44
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#23158
failed
3 years ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+30
-39
30 additions, 39 deletions
.gitlab-ci.yml
with
30 additions
and
39 deletions
.gitlab-ci.yml
+
30
−
39
View file @
40bf9463
...
...
@@ -4,7 +4,6 @@ variables:
stages
:
-
build
-
deploy
-
setup
.be-build-job
:
variables
:
...
...
@@ -27,17 +26,18 @@ stages:
only
:
-
main
.be-deploy-job
:
variables
:
KUBECTL_VERSION
:
v1.8.10
IMAGE_NAME
:
$CI_REGISTRY_IMAGE/backend
#==[ Backend deployment ]=======================================================
.be-deploy-job
:
image
:
docker:latest
stage
:
deploy
tags
:
-
commul
image
:
docker:latest
services
:
-
docker:dind
variables
:
KUBECTL_VERSION
:
v1.8.10
IMAGE_NAME
:
$CI_REGISTRY_IMAGE/backend
before_script
:
-
wget https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl
# NOTE: version is too ald and don't have sha256 available
...
...
@@ -47,41 +47,32 @@ stages:
-
docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN https://$CI_REGISTRY
script
:
-
kubectl version --client
-
echo YAY!
-
docker pull ${IMAGE_NAME}:main
#- kubectl --namespace kommul-dev set image deployment/merlin browser=${CONTAINER_IMAGE}:${CI_COMMIT_SHA}
only
:
-
main
-
docker pull ${IMAGE_NAME}:${CI_COMMIT_SHA}
#- kubectl --namespace $K8S_NAMESPACE set image deployment/$K8S_DEPLOYMENT webserver=${IMAGE_NAME}:${CI_COMMIT_SHA}
.be-setup-job
:
image
:
node:16-alpine
stage
:
setup
cache
:
-
key
:
files
:
-
backend/package-lock.json
paths
:
-
backend/node_modules
script
:
# TODO: drop python once we stop using sqlite3 in CI (soon, please)
-
apk add --update python2 build-base
-
cd backend
-
npm install
-
echo Success!
be-prd-deploy-job
:
extends
:
.be-deploy-job
environment
:
name
:
production/backend
deployment_tier
:
production
url
:
https://kommul.eurac.edu/oetzi
variables
:
K8S_NAMESPACE
:
kommul
K8S_DEPLOYMENT
:
oetzi-prd-deployment
only
:
# TODO: only on tag
-
main
.fe-setup-job
:
image
:
node:16-alpine
stage
:
setup
cache
:
-
key
:
files
:
-
frontend/package-lock.json
paths
:
-
frontend/node_modules
script
:
-
cd frontend
-
npm install
-
echo Success!
be-stg-deploy-job
:
extends
:
.be-deploy-job
environment
:
name
:
staging/backend
deployment_tier
:
staging
url
:
https://kommul-dev.eurac.edu/oetzi
variables
:
K8S_NAMESPACE
:
kommul-dev
K8S_DEPLOYMENT
:
oetzi-stg-deployment
only
:
-
development
#==[ Frontend deployment ]======================================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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