Skip to content

Commit

Permalink
build demo server on GitLab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Jan 24, 2024
1 parent 05e2ffe commit 16a08f9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
stages:
- build
- test

test_main:
Expand All @@ -14,3 +15,17 @@ test_main:
tags:
- docker-runner
image: docker-registry.ebrains.eu/neuromorphic/python:3.9-slim-git


build_demo_server:
stage: build
only:
variables:
- $CI_COMMIT_BRANCH == "main"
script:
- docker build -f demo/Dockerfile -t docker-registry.ebrains.eu/neuromorphic/demo .
- echo $DOCKER_REGISTRY_USER
- docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_SECRET docker-registry.ebrains.eu
- docker push docker-registry.ebrains.eu/neuromorphic/demo
tags:
- shell-runner

0 comments on commit 16a08f9

Please sign in to comment.