Skip to content

Commit 2463a84

Browse files
committed
Adjust Dockerfile, update actions to run on self-hosted runner
1 parent 1b3743b commit 2463a84

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010

1111
build:
12-
runs-on: ubuntu-latest
12+
runs-on: [self-hosted, arm64]
1313
steps:
1414
- uses: actions/checkout@v4
1515

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
release:
13-
runs-on: ubuntu-latest
13+
runs-on: [self-hosted, arm64]
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ EXPOSE 15080
4747
USER nonroot:nonroot
4848

4949
ENTRYPOINT ["/opt/rwp"]
50-
CMD ["serve", "/srv/publications"]
50+
CMD ["serve", "/srv/publications", "--address", "0.0.0.0"]

cmd/rwp/cmd/serve/router.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ import (
1111
func (s *Server) Routes() *mux.Router {
1212
r := mux.NewRouter()
1313

14+
r.HandleFunc("/health", func(w http.ResponseWriter, r *http.Request) {
15+
w.WriteHeader(http.StatusOK)
16+
w.Write([]byte("OK"))
17+
})
18+
1419
if s.config.Debug {
1520
r.HandleFunc("/debug/pprof/", pprof.Index)
1621
r.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)

0 commit comments

Comments
 (0)