Commit 31bce49e authored by Fernando Pastor Ricos's avatar Fernando Pastor Ricos
Browse files

Create .gitlab-ci.yml file

parent c5a6750d
Pipeline #13496 failed with stages
in 8 seconds
stages:
- build-testar-api
- build-testar-docker
build-testar-api:
image: maven:3.6.3-openjdk-11
stage: build-testar-api
script:
- 'mvn clean'
- 'mvn install'
build-testar-docker:
image: docker:20.10.2
stage: build-testar-docker
services:
- docker:20.10.2-dind
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
script:
- echo $IMAGE_TAG
- docker build -t $IMAGE_TAG .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $IMAGE_TAG
\ No newline at end of file
Supports Markdown
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