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
99727a37
Commit
99727a37
authored
2 years ago
by
Paolo Brasolin
Browse files
Options
Downloads
Patches
Plain Diff
chore: setup emergency deployment procedure
parent
f672e7d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+8
-0
8 additions, 0 deletions
.gitignore
.gitsecret/paths/mapping.cfg
+2
-0
2 additions, 0 deletions
.gitsecret/paths/mapping.cfg
Makefile
+74
-0
74 additions, 0 deletions
Makefile
with
84 additions
and
0 deletions
.gitignore
+
8
−
0
View file @
99727a37
...
...
@@ -2,3 +2,11 @@
!*.secret
backend/k8s/overlays/stg/database.secrets.env
backend/k8s/overlays/prd/database.secrets.env
butler
butler.zip
7z.so
libc7zip.so
Makefile.env
kubeconfig.yml
This diff is collapsed.
Click to expand it.
.gitsecret/paths/mapping.cfg
+
2
−
0
View file @
99727a37
backend/k8s/overlays/stg/database.secrets.env:20315cecd8ffc0b934acfdd6fc7b5c8761a9f7324f61b22df655e9897f97df62
backend/k8s/overlays/prd/database.secrets.env:21029ab07d6110a9bfc1b641bb921c7cd6344a4894f87033a79bc9b1955644df
Makefile.env
kubeconfig.yml
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
74
−
0
View file @
99727a37
include
Makefile.env
APP_VERSION
:=
$(
shell git describe
--tags
)
CI_COMMIT_SHA
:=
$(
shell git rev-parse HEAD
)
# BE HELPERS
docker-login
:
docker login
\
-u
${
CI_REGISTRY_USER
}
\
-p
${
CI_JOB_TOKEN
}
\
https://
${
CI_REGISTRY
}
docker-build
:
docker build
\
--target
production
\
--tag
=
${
IMAGE_NAME
}
:
${
APP_VERSION
}
\
--tag
=
${
IMAGE_NAME
}
:
${
CI_COMMIT_SHA
}
\
--build-arg
APP_VERSION
=
${
APP_VERSION
}
\
--build-arg
ROLLBAR_ACCESS_TOKEN
=
${
POST_SERVER_ITEM_ROLLBAR_ACCESS_TOKEN
}
\
backend
docker-push
:
docker image push
--all-tags
${
IMAGE_NAME
}
# BE JOBS
build-be-job
:
docker-login docker-build docker-push
stg-be-deploy-job
:
kubectl
set
image
deployment/
${
K8S_DEPLOYMENT
}
\
oetzit
=
${
IMAGE_NAME
}
:
${
CI_COMMIT_SHA
}
\
--namespace
=
kommul-dev
prd-be-deploy-job
:
kubectl
set
image
\
deployment/
${
K8S_DEPLOYMENT
}
\
oetzit
=
${
IMAGE_NAME
}
:
${
CI_COMMIT_SHA
}
\
--namespace
=
kommul
# FE HELPERS
get-butler
:
wget
-O
butler.zip
${
BUTLER_URL
}
unzip butler.zip
chmod
+x tmp/butler
./butler
-V
# FE JOBS
stg-build-fe-node-job
:
rm
-rf
frontend/dist/stg
cd
frontend
&&
\
NODE_ENV
=
staging
\
npm run build
--
--dist-dir
dist/stg
prd-build-fe-node-job
:
rm
-rf
frontend/dist/prd
cd
frontend
&&
\
NODE_ENV
=
production
\
npm run build
--
--dist-dir
dist/prd
stg-fe-deploy-job
:
./butler push
\
frontend/dist/stg
\
eurac/oetzit-staging:html5
\
--userversion
${
APP_VERSION
}
prd-fe-deploy-job
:
./butler push
\
frontend/dist/prd
\
eurac/oetzit:html5
\
--userversion
${
APP_VERSION
}
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