Commit Graph

32 Commits

Author SHA1 Message Date
3c2e85ed4a Correct destination of nomad-ca.crt template to be inside NOMAD_SECRETS_DIR 2021-07-30 12:08:56 +00:00
81eccbdf9c Remove custom deployment watcher script
As of version 1.1.2 of Nomad, the CLI monitors job deployments by
default until they are finished. Thus our custom job deployment
watcher script is not required anymore.
2021-07-29 09:57:04 +00:00
fe240c82b4 Remove demo job HCL file
Previously we used this file to deploy a job on Nomad that our API
used for e2e tests. Now that we create the environments in the e2e
tests, we don't need the demo job anymore.
2021-07-27 16:31:03 +02:00
8b26ecbe5f Restructure project
We previously didn't really had any structure in our project apart
from creating a new folder for each package in our project root.
Now that we have accumulated some packages, we use the well-known
Golang project layout in order to clearly communicate our intent
with packages. See https://github.com/golang-standards/project-layout
2021-07-21 12:55:35 +02:00
d7c1787b57 Disable allow-failure for linting pipeline
Now that all linting issues are fixed, we disable allow-failure for
the linting step to ensure that later commits adhere to the linter.
2021-07-13 08:59:25 +02:00
52636b04cf Allow lint step to fail
This way we can use the linter in all branches already and gradually
adjust our code to the new linter.
2021-05-27 08:18:00 +00:00
ea7eff0062 Remove deprecated golint 2021-05-27 08:18:00 +00:00
1b49d396f3 Separatly test dependencies and Docker image.
This way, we don't enter all the steps in the CI if the dependencies
appear to be vulnerable.
2021-05-26 15:05:29 +00:00
8d7aa2ea3c Add trivy vulnerability scanner and custom docker-make image
Trivy is used in the CI after building our Docker image. It scans
the Docker image and our dependencies for known vulnerabilities.
The docker-make image is a simple docker:latest containing make.
2021-05-26 15:05:29 +00:00
0d697bfd67 Merge e2e and deploy-review Nomad job for CI
This way we don't have to manage two separate job files.
2021-05-18 12:10:39 +00:00
24b7f1a2fa Create demo job when deploying for review 2021-05-18 12:10:39 +00:00
b141a6870e Use Nomad namespace in CI 2021-05-18 12:10:39 +00:00
3b8e757ba8 Use make in CI 2021-05-18 06:16:09 +00:00
e07e8216f2 Deploy review only manually 2021-05-11 13:52:02 +00:00
deb4a8b116 Build Docker image and deploy API only if tests succeed 2021-05-11 13:52:02 +00:00
c455353925 Increase timeout for golang ci lint 2021-05-11 14:29:26 +02:00
fde334a610 Perform a few renamings 2021-05-11 14:26:05 +02:00
9a2181afc9 Add note to readme about how to generate mocks which follow the naming scheme 2021-05-11 14:26:05 +02:00
c9a5299f0c Exclude Mock files from coverage 2021-05-11 14:26:05 +02:00
dba7160a41 Implement merge request review comments 2021-05-10 12:14:56 +02:00
0dc4d28c1b Add e2e tests in ci stage 2021-05-07 12:54:15 +02:00
edfee24d1c Move Nomad CI files to ci directory 2021-05-04 14:25:44 +00:00
c092199693 Add basic nomad integration and runner provider 2021-05-04 13:08:04 +02:00
f401ebb3c4 Build nomad-ci image in pipeline 2021-05-04 08:15:34 +02:00
2c049afaa6 Make pipeline wait for successful Nomad deployment 2021-05-04 08:15:26 +02:00
cff6997337 Add coverage report 2021-04-30 15:40:54 +02:00
13c0752d99 Update .gitlab-ci.yml 2021-04-28 15:04:43 +00:00
8504e1a749 Add automatic deployment 2021-04-28 15:08:28 +02:00
2cb34eb477 Add CI job building the binary and a docker image 2021-04-28 11:12:53 +02:00
38434cef27 Add tests for health route 2021-04-26 14:20:01 +02:00
5352673b2c Add golangci-lint and golint to CI 2021-04-26 11:16:23 +02:00
be93c36cc8 Add Hello CodeMoon with test 2021-04-26 11:15:50 +02:00