-
Notifications
You must be signed in to change notification settings - Fork 6
ZDocs02 Docker Publish
Kevin Frey edited this page Oct 19, 2022
·
3 revisions
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