ZDocs02 Docker Publish - nfdi4plants/Swate GitHub Wiki
Start docker then use:
.\build.cmd docker-publish
This will ask you if you have the correct version and will ask you to test the image before publishing. After testing the image, you can Ctrl + c
the console and you will be asked if the image works alright and if you want to publish.
OR
Step by step
- Create image
docker build -t swate -f build/Dockerfile.publish .
- Test image
docker run -it -p 8085:8085 swate
- Create tag for image
docker tag swate:latest freymaurer/swate:X.X.X
docker tag swate:latest freymaurer/swate:latest
Remember to replace "X.X.X" with the correct next SemVer version.
- Push the image
docker push freymaurer/swate:X.X.X
docker push freymaurer/swate:latest