[Git][noosfero/noosfero][master] 3 commits: Adds Docker Hub Image deploy
Álax Alves
gitlab at mg.gitlab.com
Sat Aug 3 10:31:53 BRT 2019
Álax Alves pushed to branch master at Noosfero / noosfero
Commits:
e04aff81 by Arthur Diniz at 2019-07-31T01:10:35Z
Adds Docker Hub Image deploy
Signed-off-by: Arthur Diniz <arthurbdiniz at gmail.com>
- - - - -
0af7eea9 by Gabriel Silva at 2019-07-31T03:40:22Z
CI: Runs cucumber/selenium on test stage
Signed-off-by: Gabriel Silva <gabrielssilva.sw at gmail.com>
- - - - -
2428a623 by Álax Alves at 2019-08-03T13:31:50Z
Merge branch 'docker-gitlab-registry' into 'master'
Build Docker image on tag builds
See merge request noosfero/noosfero!1705
- - - - -
1 changed file:
- .gitlab-ci.yml
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -6,6 +6,7 @@ variables:
POSTGRES_DB: gitlab_ci_test
POSTGRES_USER: gitlab_ci_runner
POSTGRES_PASSWORD: ""
+ IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
services:
- postgres:9.4
@@ -23,9 +24,8 @@ before_script:
stages:
- test
- test-plugins
- - test-cucumber
- - test-selenium
- code-quality
+ - build
.cache: &cache
cache:
@@ -70,65 +70,74 @@ cucumber-1:
<<: *retriable
<<: *cache
script: bundle exec rake noosfero:doc:build & SLICE=1/2 bundle exec cucumber --profile default
- stage: test-cucumber
+ stage: test
+
cucumber-2:
<<: *retriable
<<: *cache
script: SLICE=2/2 bundle exec cucumber --profile default
- stage: test-cucumber
+ stage: test
selenium-1:
<<: *retriable
<<: *cache
script: SLICE=1/6 bundle exec rails selenium
- stage: test-selenium
+ stage: test
+
selenium-2:
<<: *retriable
+ <<: *cache
script: SLICE=2/6 bundle exec rails selenium
- stage: test-selenium
+ stage: test
+
selenium-3:
<<: *retriable
<<: *cache
script: SLICE=3/6 bundle exec rails selenium
- stage: test-selenium
+ stage: test
+
selenium-4:
<<: *retriable
<<: *cache
script: SLICE=4/6 bundle exec rails selenium
- stage: test-selenium
+ stage: test
+
selenium-5:
<<: *retriable
<<: *cache
script: SLICE=5/6 bundle exec rails selenium
- stage: test-selenium
+ stage: test
+
selenium-6:
<<: *retriable
<<: *cache
script: SLICE=6/6 bundle exec rails selenium
- stage: test-selenium
+ stage: test
-# NOOSFERO_BUNDLE_OPTS=install makes migrations fails
-# probably because of rubygems-integration
plugins-1:
<<: *retriable
<<: *cache
script: SLICE=1/5 bundle exec rails test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
stage: test-plugins
+
plugins-2:
<<: *retriable
<<: *cache
script: SLICE=2/5 bundle exec rails test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
stage: test-plugins
+
plugins-3:
<<: *retriable
<<: *cache
script: SLICE=3/5 bundle exec rails test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
stage: test-plugins
+
plugins-4:
<<: *retriable
<<: *cache
script: SLICE=4/5 bundle exec rails test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
stage: test-plugins
+
plugins-5:
<<: *retriable
<<: *cache
@@ -149,7 +158,6 @@ rubocop:
allow_failure: true
code_quality:
- <<: *retriable
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
@@ -160,10 +168,10 @@ code_quality:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
script:
- docker run
- --env SOURCE_CODE="$PWD"
- --volume "$PWD":/code
- --volume /var/run/docker.sock:/var/run/docker.sock
- "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
+ --env SOURCE_CODE="$PWD"
+ --volume "$PWD":/code
+ --volume /var/run/docker.sock:/var/run/docker.sock
+ "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths:
- gl-code-quality-report.json
@@ -172,3 +180,16 @@ code_quality:
stage: code-quality
only:
- tags
+
+build_image:
+ image: docker:stable
+ stage: build
+ services:
+ - docker:dind
+ before_script:
+ - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
+ script:
+ - docker build -f config/docker/prod/Dockerfile -t $IMAGE_TAG .
+ - docker push $IMAGE_TAG
+ only:
+ - tags
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/e600d6603af4dd9623a32bad34459cc37c660aa6...2428a623b4d11eace7835d027f97dc63f8bda570
--
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/e600d6603af4dd9623a32bad34459cc37c660aa6...2428a623b4d11eace7835d027f97dc63f8bda570
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20190803/1bc9dfc3/attachment-0001.html>
More information about the Noosfero-dev
mailing list