summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-09-23 14:18:24 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-09-23 14:19:28 +0200
commit590adffa9316b98544cb8d67b03b80e44ba9c8b7 (patch)
treef5a325f7f08e2b534b5e976a7820e5b699925510 /.gitlab-ci.yml
parentbdb653090c91dc6297a5597fdafcb20be76359d6 (diff)
Fixed release file build (did not include frontend files), formatting
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml15
1 files changed, 8 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a599a6dc..2d7f3cf4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,7 @@ variables:
DOCROOT: /var/www/
stages:
+ - build-frontend
- build
- test
- release
@@ -26,19 +27,19 @@ stages:
before_script:
- docker login -u gitlab-ci-token -p "${CI_JOB_TOKEN}" "${CI_REGISTRY}"
-build-image:
+build-image.nginx:
<<: *docker_definition
- stage: build
+ stage: build-frontend
script:
- - docker build --pull -t "${TEST_IMAGE}" -f contrib/Dockerfile .
- - docker push "${TEST_IMAGE}"
+ - docker build --pull -t "${TEST_IMAGE}-nginx" -f contrib/nginx/Dockerfile .
+ - docker push "${TEST_IMAGE}-nginx"
-build-image.nginx:
+build-image:
<<: *docker_definition
stage: build
script:
- - docker build --pull -t "${TEST_IMAGE}.nginx" -f contrib/nginx/Dockerfile .
- - docker push "${TEST_IMAGE}.nginx"
+ - docker build --pull --build-arg NGINX_IMAGE="${TEST_IMAGE}-nginx" -t "${TEST_IMAGE}" -f contrib/Dockerfile .
+ - docker push "${TEST_IMAGE}"
test:
image: ${TEST_IMAGE}