From 30b1735e79e2efaea5d35f26da476513c2ec1671 Mon Sep 17 00:00:00 2001 From: Gilbert Roulot Date: Thu, 9 Aug 2018 14:59:16 +0000 Subject: Make pushes to master build the next release's docker image. https://gitlab.com/gitlab-org/security-products/release/issues/7 --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f19fc2b..cbe34ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,7 +28,7 @@ test: only: - branches -release-latest: +release-latest-and-next-version: stage: release image: docker:stable services: @@ -45,6 +45,9 @@ release-latest: - docker tag "$CI_APPLICATION_REPOSITORY:$CI_APPLICATION_TAG" "$CI_REGISTRY_IMAGE:latest" - echo "Pushing to GitLab Container Registry..." - docker push "$CI_REGISTRY_IMAGE:latest" + - docker tag "$CI_APPLICATION_REPOSITORY:$CI_APPLICATION_TAG" "$CI_REGISTRY_IMAGE:$(cat VERSION)" + - echo "Pushing to GitLab Container Registry..." + - docker push "$CI_REGISTRY_IMAGE:$(cat VERSION)" only: - master -- cgit v1.2.3