Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous deployment to dockerhub #12

Open
heralden opened this issue Aug 14, 2020 · 0 comments
Open

Continuous deployment to dockerhub #12

heralden opened this issue Aug 14, 2020 · 0 comments

Comments

@heralden
Copy link
Member

It would be useful to have a Github action which when a PR is merged, or change committed to master branch, builds the docker containers and if there are no errors, pushes the new images to https://hub.docker.com/u/intermine/.

The docker commands for doing this once auth secrets have been added: (filling in imagename and commithash)

docker build -t imagename path/to/Dockerfile
docker tag imagename intermine/imagename:latest
docker tag imagename intermine/imagename:commithash
docker push intermine/imagename

For the sake of automation, I think using the commit hash instead of a semantic version is okay.

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

No branches or pull requests

1 participant