Skip to content

Commit

Permalink
Merge pull request #7 from EGA-archive/feature/EE-1785
Browse files Browse the repository at this point in the history
Adding gitlab ci yml file
  • Loading branch information
anandmohan777 authored Jan 29, 2021
2 parents 0f963b8 + 5d633fd commit fbfe97d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
image: dockerhub.ebi.ac.uk/ega/ega-data-api-build-container:latest

services:
- docker:dind

stages:
- build
- package

maven-build:
stage: build
script:
- mvn test

docker-build:
stage: package
script:
- mvn clean package "-DdockerRegistry=$CI_REGISTRY_IMAGE" "-Dimage.version=$CI_COMMIT_TAG" -P production -DskipTests
only:
- tags

0 comments on commit fbfe97d

Please sign in to comment.