Go tour Vietnamese
Docker for Go Tour
All code from golangvn/tour will be updated when gotour service is restarted.
Use service in Core OS
- /home/core/docker-gotour This is working directory of service. Please pull code to this directory.
- Unit files are located at /etc/systemd/system/ . Please copy file gotour.service to there.
- Service commands:
sudo systemctl start gotour
- Stop service
sudo systemctl stop gotour
How to use autodeploy
- Build that script
go build autodeploy.go
- Copy bin file to server and run it
- Add webhook with endpoint /update-docker-go-tour
- [x] Auto restart gotour service when tour translate update
- [ ] Prevent multiple request to restart service with autodeploy.go script
- [ ] Support webhook screet
- [ ] Only update when pust to translate-vi branch
Docker Pull Command