File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 44
55stages :
66 - test
7- - deploy
7+ - build
88 - build_image
99 - push_image
1010
@@ -32,9 +32,9 @@ test:7.4:
3232 extends : .tests
3333 image : php:7.4
3434
35- release :
35+ build_package :
3636 extends : .php_build_install
37- stage : deploy
37+ stage : build
3838 image : php:7.4
3939 script : php composer.phar install --no-dev
4040 dependencies :
@@ -49,14 +49,12 @@ release:
4949 - index.php
5050 - LICENSE
5151 - README.md
52- only :
53- - tags
5452
5553Docker Build :
54+ image : docker:18
5655 stage : build_image
5756 dependencies :
58- - test:7.3
59- - test:7.4
57+ - build_package
6058 script :
6159 - echo -n $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY
6260 # fetches the latest image (not failing if image is not found)
@@ -78,6 +76,7 @@ Docker Build:
7876
7977# Here, the goal is to tag the "master" branch as "latest"
8078Push Docker latest :
79+ image : docker:18
8180 variables :
8281 # We are just playing with Docker here.
8382 # We do not need GitLab to clone the source code.
@@ -99,6 +98,7 @@ Push Docker latest:
9998# Finally, the goal here is to Docker tag any Git tag
10099# GitLab will start a new pipeline everytime a Git tag is created, which is pretty awesome
101100Push Docker tag :
101+ image : docker:18
102102 variables :
103103 # Again, we do not need the source code here. Just playing with Docker.
104104 GIT_STRATEGY : none
You can’t perform that action at this time.
0 commit comments