From 01792e12dace587f9ff9cd57e103759e7cf77331 Mon Sep 17 00:00:00 2001 From: Slava Date: Wed, 29 May 2024 18:11:24 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d25185f..e5c9475 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,6 +63,8 @@ make_image: # Here, the goal is to tag the "master" branch as "latest" Push latest: + needs: + - make_image variables: # We are just playing with Docker here. # We do not need GitLab to clone the source code. @@ -80,6 +82,8 @@ Push latest: # Finally, the goal here is to Docker tag any Git tag # GitLab will start a new pipeline everytime a Git tag is created, which is pretty awesome Push commit: + needs: + - make_image variables: # Again, we do not need the source code here. Just playing with Docker. GIT_STRATEGY: none @@ -90,6 +94,8 @@ Push commit: - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME Push tag: + needs: + - make_image variables: # Again, we do not need the source code here. Just playing with Docker. GIT_STRATEGY: none