Skip to content

Commit

Permalink
Docker - rename .ci directory, shorter commit in tag
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenekdrahos committed Sep 24, 2017
1 parent aa4d0f4 commit 691852d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions .ci/build-docker-image → .docker/build-image
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

APP_DIR="./"
DOCKER_REPO="zdenekdrahos/phpqa"
DOCKER_FILE=".ci/Dockerfile"
DOCKER_FILE=".docker/Dockerfile"
DOCKER_TAG=""

run () {
Expand All @@ -11,7 +11,7 @@ run () {
}

load_docker_variables () {
DOCKER_TAG="$DOCKER_REPO:${TRAVIS_TAG:-$TRAVIS_COMMIT}"
DOCKER_TAG="$DOCKER_REPO:${TRAVIS_TAG:-$TRAVIS_COMMIT:0:7}"

echo "Dockefile: $DOCKER_FILE"
echo "Build context: $APP_DIR"
Expand Down
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.git*
.docker*
.ci
bin/deploy-report.sh
bin/ci.sh
build
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/tests export-ignore
/bin export-ignore
/.ci export-ignore
/.docker export-ignore
/.dockerignore export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ script:
# http://blog.wyrihaximus.net/2015/07/composer-cache-on-travis/
deploy:
- provider: script
script: .ci/build-docker-image
script: .docker/build-image
skip_cleanup: true
on:
tags: true
php: 7.0
- provider: script
script: ls -la .ci && .ci/build-docker-image
script: ls -la .docker && .docker/build-image
skip_cleanup: true
on:
branch: docker
Expand Down

0 comments on commit 691852d

Please # to comment.