Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Proposal to deploy Docker image on each commit on master #532

Merged
merged 1 commit into from
Apr 25, 2019
Merged

Proposal to deploy Docker image on each commit on master #532

merged 1 commit into from
Apr 25, 2019

Conversation

sbrunner
Copy link
Contributor

@sbrunner sbrunner commented Apr 1, 2019

No description provided.

@stgarf
Copy link
Contributor

stgarf commented Apr 1, 2019

@sbrunner It might make sense to push a docker image to DockerHub only on tagged releases to ensure we're only pushing quality containers based on tagged releases... (instead of each commit to master which may or may not contain a variety of in-progress work and bugs).

.travis.yml Outdated Show resolved Hide resolved
@sbrunner
Copy link
Contributor Author

sbrunner commented Apr 2, 2019

@stgarf Yes, I will work on that :-)

@ahyear
Copy link
Contributor

ahyear commented Apr 2, 2019

is it possible, with a parametre in docker-compose.env (for exemple) to let the user choose between last tag and master?

@sbrunner
Copy link
Contributor Author

sbrunner commented Apr 3, 2019

@stgarf I change it and also test it as most as possible without a real password ...

@sbrunner
Copy link
Contributor Author

sbrunner commented Apr 3, 2019

@ahyear
It's not possible to do that in the docker-compose.env because he contains only environment variable for the container, to do that we should create a .env file.
And finally for me it should be done in another pull request...

@stgarf
Copy link
Contributor

stgarf commented Apr 4, 2019

@ahyear

is it possible, with a parametre in docker-compose.env (for exemple) to let the user choose between last tag and master?

To do what you're asking you'd instead replace the build: ./ here and here with something à la image: <docker-image-you/want-to-run>:<tag-you-want> in your docker-compose.yaml.

@sbrunner
Copy link
Contributor Author

What can be the next for this pull request?

@MasterofJOKers
Copy link
Contributor

If we merge this, the deploy step will not be active, right? I assume it's not, because it should fail without a password and travis shows no failure for this PR.

So after merging this, someone™ would have to change the username, encrypt and set the password and activate the deploy step. Who would do that and how do you activate that step?

@sbrunner
Copy link
Contributor Author

@MasterofJOKers You just needs to fill the DOCKER_USERNAME and DOCKER_PASSWORD, it don't failed because only tags and the master branch is published...

.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
@MasterofJOKers
Copy link
Contributor

@MasterofJOKers You just needs to fill the DOCKER_USERNAME and DOCKER_PASSWORD, it don't failed because only tags and the master branch is published...

Ah. So it will only fail for master, once we merge it, but since PRs aren't included, travis would still be green for them. I feared, we would end up not being able to merge anything afterwards.

Still, whoever has the appropriate rights on their account to allow pushing into docker should merge this PR, because she/he would have to create a commit right afterwards.

@sbrunner
Copy link
Contributor Author

Thanks @MasterofJOKers for your review, I just the required changes :-), Your right it's better ton don't break the master :-)

@sbrunner
Copy link
Contributor Author

UP ...

@ahyear ahyear self-requested a review April 23, 2019 12:24
@sbrunner
Copy link
Contributor Author

Thanks for the approved But how can we merge in configure the Docker deployment?

@ahyear ahyear merged commit 351809b into the-paperless-project:master Apr 25, 2019
@sbrunner sbrunner deleted the docker-deploy branch April 25, 2019 12:52
@sbrunner
Copy link
Contributor Author

Thanks @ahyear :-)

@danielquinn
Copy link
Collaborator

There's a discussion about this (and the future of how we handle Docker integration) going on here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants