File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
os : linux
2
2
3
3
services :
4
- - docker
4
+ - docker
5
5
6
6
script :
7
- - docker build --build-arg BUILD_DATE="$(date --rfc-3339=seconds | sed 's/ /T/')" --build-arg VCS_REF="$(echo $TRAVIS_COMMIT | cut -c -7)" --tag otherguy/dropbox:latest .
7
+ - docker build --build-arg VERSION="${TRAVIS_BRANCH}" --build-arg BUILD_DATE="$(date --rfc-3339=seconds | sed 's/ /T/')" --build-arg VCS_REF="$(echo $TRAVIS_COMMIT | cut -c -7)" --tag otherguy/dropbox:latest .
8
8
9
9
before_deploy :
10
- - echo "${DOCKERHUB_TOKEN}" | docker login -u "${DOCKERHUB_USERNAME}" --password-stdin && echo "${GITHUB_TOKEN}" | docker login docker.pkg.github.com -u "${GITHUB_USERNAME}" --password-stdin
10
+ - echo "${DOCKERHUB_TOKEN}" | docker login -u "${DOCKERHUB_USERNAME}" --password-stdin && echo "${GITHUB_TOKEN}" | docker login docker.pkg.github.com -u "${GITHUB_USERNAME}" --password-stdin
11
11
12
12
deploy :
13
13
- provider : script
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ ARG BUILD_DATE=""
65
65
# http://label-schema.org/rc1/
66
66
LABEL org.label-schema.schema-version "1.0"
67
67
LABEL org.label-schema.name "Dropbox"
68
+ LABEL org.label-schema.version "${VERSION}"
68
69
LABEL org.label-schema.build-date "${BUILD_DATE}"
69
70
LABEL org.label-schema.description "Standalone Dropbox client"
70
71
LABEL org.label-schema.vcs-url "https://github.com/otherguy/docker-dropbox"
Original file line number Diff line number Diff line change @@ -105,6 +105,6 @@ sleep 5
105
105
# Dropbox likes to restart itself. In that case, the container will exit!
106
106
while kill -0 ${DROPBOX_PID} 2> /dev/null; do
107
107
[ -d " /proc/${DROPBOX_PID} " ] && [ -f " /opt/dropbox/.dropbox/info.json" ] && gosu dropbox dropbox status
108
- /usr/bin/find /tmp -maxdepth 1 -type d -mtime +1 -exec rm -rf {} \;
108
+ /usr/bin/find /tmp/ -maxdepth 1 -type d -mtime +1 ! -path /tmp/ -exec rm -rf {} \;
109
109
/bin/sleep ${POLLING_INTERVAL}
110
110
done
You can’t perform that action at this time.
0 commit comments