Skip to content
Snippets Groups Projects
Commit 8cf142ae authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added rawapi bits to CI/CD.

parent 7570f940
No related branches found
No related tags found
No related merge requests found
Pipeline #40514 failed
......@@ -21,6 +21,8 @@ variables:
RELEASE_IMAGE: gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-fair:latest
FRONTEND_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-fair/frontend:test
FRONTEND_RELEASE_IMAGE: gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-fair/frontend:latest
RAWAPI_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-fair/rawapi:test
RAWAPI_RELEASE_IMAGE: gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-fair/rawapi:latest
build:
stage: build
......@@ -45,6 +47,16 @@ buildgui:
- /^dev-.*$/
buildrawapi:
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
- docker build -t $RAWAPI_TEST_IMAGE .
- docker push $RAWAPI_TEST_IMAGE
except:
- /^dev-.*$/
linting:
stage: test
image: $TEST_IMAGE
......@@ -88,6 +100,15 @@ tests:
except:
- /^dev-.*$/
rawapitests:
stage: test
image: $RAWAPI_TEST_IMAGE
script:
- cd /app
- python -m pytest -sv tests/test_api.py::TestRaw
except:
- /^dev-.*$/
# does currently not work, current GitLab CI runner does not network services with each other
# integration-tests:
# stage: integration
......@@ -137,8 +158,9 @@ release:
- docker pull $FRONTEND_TEST_IMAGE
- docker tag $FRONTEND_TEST_IMAGE $FRONTEND_RELEASE_IMAGE
- docker push $FRONTEND_RELEASE_IMAGE
only:
- master
except:
- /^dev-.*$/
when: manual
deploy:
stage: deploy
......@@ -150,6 +172,6 @@ deploy:
- cp /nomad/config/.env .
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml build
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --no-deps -d api worker gui
only:
- master
except:
- /^dev-.*$/
when: manual
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