CI/CD Valide
This commit is contained in:
parent
0dd40facf3
commit
d5c513fe41
|
@ -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 .
|
||||
|
|
Loading…
Reference in New Issue