mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
Deploy Docker image
This commit is contained in:
parent
7687e7ca53
commit
83e045a120
2 changed files with 35 additions and 2 deletions
15
ci/deploy-docker
Executable file
15
ci/deploy-docker
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "${DOCKER_USERNAME}" == "" -o "${DOCKER_PASSWORD}" == "" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
docker login --username=${DOCKER_USERNAME} --password=${DOCKER_PASSWORD}
|
||||
if [ "${TRAVIS_TAG}" != "" ]
|
||||
then
|
||||
docker tag the-paperless-project/paperless the-paperless-project/paperless:${TRAVIS_TAG}
|
||||
docker push the-paperless-project/paperless:${TRAVIS_TAG}
|
||||
else
|
||||
docker push the-paperless-project/paperless
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue