diff options
| author | 2018-06-06 16:04:29 +0100 | |
|---|---|---|
| committer | 2018-06-06 16:04:29 +0100 | |
| commit | 57985da1a13ed5637c58b3035b94988daaf3e567 (patch) | |
| tree | 63f962a2bfaaea8294677d8405d8c5bca9e6b82e | |
| parent | [CI] Add RDB/RMQ hosts (diff) | |
[CI] Fix deployment
| -rw-r--r-- | .gitlab-ci.yml | 8 | ||||
| -rw-r--r-- | scripts/deploy.sh | 2 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 727d67bc..629c744a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,7 +17,6 @@ services:  before_script: -  - apk add --update ruby ruby-dev ruby-rdoc ruby-irb    - apk add --update tini    - apk add --update git    - apk add --update build-base @@ -26,9 +25,6 @@ before_script:    - apk add --update autoconf    - apk add --update automake    - apk add --update libtool -  - pip install pipenv -  - pipenv sync --dev --three -  - gem install scss_lint  stages:    - test @@ -37,6 +33,10 @@ stages:  test:    stage: test    script: +    - apk add --update ruby ruby-dev ruby-rdoc ruby-irb +    - pip install pipenv +    - pipenv sync --dev --three +    - gem install scss_lint      - pipenv run lint      - pipenv run lintscss      - pipenv run python gunicorn_config.py diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 4a4604c6..f4799749 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,7 +1,7 @@  #!/bin/bash  # Build and deploy on master branch -if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then +if [[ $CI_COMMIT_REF_SLUG == 'master' ]]; then      echo "Connecting to docker hub"      echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | 
