change image name
All checks were successful
Build docker container / Build image (push) Successful in 33s
All checks were successful
Build docker container / Build image (push) Successful in 33s
This commit is contained in:
parent
7780311ea6
commit
d7be2e9ac3
@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/catthehacker/ubuntu:act-latest
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: goredire
|
IMAGE_NAME: goredir
|
||||||
REGISTRY: git.mziesel.nl
|
REGISTRY: git.mziesel.nl
|
||||||
REPO_OWNER: mans
|
REPO_OWNER: mans
|
||||||
steps:
|
steps:
|
||||||
|
1
main.go
1
main.go
@ -11,6 +11,7 @@ func greet(w http.ResponseWriter, r *http.Request) {
|
|||||||
if !strings.HasSuffix(r.Host, "mzsl.nl") {
|
if !strings.HasSuffix(r.Host, "mzsl.nl") {
|
||||||
w.WriteHeader(http.StatusNotFound)
|
w.WriteHeader(http.StatusNotFound)
|
||||||
w.Write([]byte("404, url not found"))
|
w.Write([]byte("404, url not found"))
|
||||||
|
fmt.Printf("Host: %s not found\n", r.Host)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user