CI/CD Valide

This commit is contained in:
FyloZ 2021-02-12 22:15:38 -05:00
parent 0dd40facf3
commit d5c513fe41
1 changed files with 3 additions and 4 deletions

View File

@ -2,10 +2,6 @@ variables:
CI_REGISTRY_IMAGE_GRADLE: "$CI_REGISTRY_IMAGE:latest-gradle"
CI_REGISTRY_IMAGE_BACKEND: "$CI_REGISTRY_IMAGE:latest"
only:
refs:
- master
before_script:
- docker info
- docker login -u $CI_USERNAME -p $CI_ACCESS_TOKEN $CI_REGISTRY
@ -18,6 +14,9 @@ stages:
build:
stage: build
only:
refs:
- master
script:
- docker pull $CI_REGISTRY_IMAGE_GRADLE || true
- docker build --cache-from $CI_REGISTRY_IMAGE_GRADLE -f gradle.Dockerfile -t $CI_REGISTRY_IMAGE_GRADLE --build-arg JDK_VERSION=$JDK_VERSION --build-arg GRADLE_VERSION=$GRADLE_VERSION .