update a route and removed the promotion thingy
continuous-integration/drone/push Build is passing Details

main
Antonio De Lucreziis 2 years ago
parent 49c4ed1a9b
commit a0349c1de9

@ -16,11 +16,6 @@ steps:
- docker build -t drone-example .
- docker rm -f drone-example
- docker run -d -p 127.241.212.77:1098:5000 --restart always --name drone-example drone-example
when:
event:
- promote
target:
- production
volumes:
- name: docker-socket

@ -12,7 +12,7 @@ import (
func main() {
r := http.NewServeMux()
r.HandleFunc("/foo", func(w http.ResponseWriter, r *http.Request) {
r.HandleFunc("/foo/sum", func(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodGet {
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
return

Loading…
Cancel
Save