More generic gitlab-ci

parent e283f5a7
Pipeline #97 passed with stages
in 56 seconds
......@@ -20,7 +20,11 @@ maven_build:
- pwd
- ls -la .
- mvn verify
cache:
paths:
- target
# All artifacts from all previous stages are passed by default.
artifacts:
paths:
......@@ -30,10 +34,10 @@ maven_build:
docker_build:
stage: deploy
script:
- echo "Building and deploying the docker image."
- echo "Building and deploying the docker image trula/$CI_PROJECT_NAME."
- pwd
- ls -la .
- docker info
- docker build -t trula/computational-engine .
- docker rm -fv computational-engine || true
- docker run --name computational-engine -d -p 18080:8080 -p 18787:8787 --restart always --network trula -v /etc/timezone:/etc/timezone:ro trula/computational-engine -DRUNNING_ENVIRONMENT=test
- docker build -t trula/$CI_PROJECT_NAME .
- docker rm -fv $CI_PROJECT_NAME || true
- docker run --name $CI_PROJECT_NAME -d -p 18080:8080 -p 18787:8787 --restart always --network trula -v /etc/timezone:/etc/timezone:ro trula/$CI_PROJECT_NAME -DRUNNING_ENVIRONMENT=test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment