Skip to content

Commit f7facdf

Browse files
committed
Update .gitlab-ci.yml file
1 parent 8016452 commit f7facdf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cache:
44

55
stages:
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

5553
Docker 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"
8078
Push 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
101100
Push 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

0 commit comments

Comments
 (0)