Added image declaration for the test phase and renamed release to deploy

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2020-10-29 16:04:48 +01:00
parent 1bf04ee7ab
commit dd43dc1f8f

View File

@ -5,7 +5,7 @@ services:
stages: stages:
- build - build
- test - test
- release - deploy
# Disable the Gradle daemon for Continuous Integration servers as correctness # Disable the Gradle daemon for Continuous Integration servers as correctness
# is usually a priority over speed in CI environments. Using a fresh # is usually a priority over speed in CI environments. Using a fresh
@ -34,6 +34,7 @@ build:
test: test:
image: gradle:jdk15
stage: test stage: test
script: gradle check script: gradle check
cache: cache:
@ -45,7 +46,7 @@ test:
package: package:
stage: release stage: deploy
variables: variables:
IMAGE_LATEST_TAG: $CI_REGISTRY_IMAGE:latest IMAGE_LATEST_TAG: $CI_REGISTRY_IMAGE:latest
IMAGE_COMMIT_REF_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG IMAGE_COMMIT_REF_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG