diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..4d7f17b4 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,32 @@ +version: 2 + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + day: "sunday" + groups: + all-github-actions: + patterns: + - "*" + + - package-ecosystem: "docker" + directory: "/src" + schedule: + interval: "weekly" + day: "sunday" + groups: + all-docker: + patterns: + - "*" + + - package-ecosystem: "go-mod" + directory: "/src" + schedule: + interval: "weekly" + day: "sunday" + groups: + all-go-mod: + patterns: + - "*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0b0e27f..c9b5a5a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: build_docker_image: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Build Docker run: | source ./tool.sh @@ -39,7 +39,7 @@ jobs: sed -i -E -e "s/v[0-9]+\.[0-9]+\.[0-9]+/${VERSION}/" -e "s/GIT_COMMIT_ID/${COMMIT_SHA}/" src/supervisord/version.go build_image_no_tag supervisord "alpine-${VER}" src/supervisord.Dockerfile --build-arg "BASE_NAMESPACE=library" --build-arg "BUILD_IMG=golang:alpine" --build-arg "BASE_IMG=alpine" - build_image_no_tag supervisord "ubuntu-${VER}" src/supervisord.Dockerfile --build-arg "BASE_NAMESPACE=labnow" --build-arg "BUILD_IMG=go:latest" --build-arg "BASE_IMG=ubuntu" + build_image_no_tag supervisord "ubuntu-${VER}" src/supervisord.Dockerfile --build-arg "BASE_NAMESPACE=labnow" --build-arg "BUILD_IMG=go:latest" --build-arg "BASE_IMG=ubuntu" docker tag "${IMG_PREFIX_DST}/supervisord:ubuntu-${VER}" "${IMG_PREFIX_DST}/supervisord:ubuntu" docker tag "${IMG_PREFIX_DST}/supervisord:alpine-${VER}" "${IMG_PREFIX_DST}/supervisord:alpine" push_image supervisord @@ -47,11 +47,11 @@ jobs: build_binary: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: - go-version: 1.26 + go-version: "stable" # 1.26 - name: Build Binary run: | set -eux @@ -70,11 +70,11 @@ jobs: build_goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: - go-version: 1.26 + go-version: "stable" # 1.26 - name: Install cross-compiler for linux/arm64, UPX env: diff --git a/README.md b/README.md index e8819365..172e03f4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,16 @@ # Go Implementation of Supervisord +[](https://opensource.org/licenses/MIT-Clause) [](https://goreportcard.com/report/github.com/LabNow-ai/supervisord) +[](https://github.com/LabNow-ai/supervisord/actions/workflows/ci.yml) +[](https://github.com/LabNow-ai/supervisord/stargazers) +[](https://hub.docker.com/u/labnow) + +Please generously STAR★ our project or donate to us! [](https://github.com/LabNow-ai/supervisord/stargazers) + +Discussion and contributions are welcome: +[](https://discord.gg/kHUzgQxgbJ) +[](https://github.com/LabNow-ai/supervisord/issues) ## Why this project? diff --git a/src/supervisord/assets.go b/src/supervisord/assets.go index 8b9c53fb..1e958ffe 100644 --- a/src/supervisord/assets.go +++ b/src/supervisord/assets.go @@ -74,7 +74,7 @@ func newZipFS(r *zip.Reader) *zipFS { continue } z.files[name] = f - // populate parent directories + // populate parent directories with direct child entries only dir := path.Dir(name) if dir == "." { dir = "" diff --git a/src/supervisord/go.mod b/src/supervisord/go.mod index b36f2771..a7a95183 100644 --- a/src/supervisord/go.mod +++ b/src/supervisord/go.mod @@ -16,7 +16,7 @@ require ( github.com/ochinchina/gorilla-xmlrpc v0.0.0-20171012055324-ecf2fe693a2c github.com/prometheus/client_golang v1.12.2 github.com/robfig/cron/v3 v3.0.0 - github.com/sirupsen/logrus v1.9.0 + github.com/sirupsen/logrus v1.9.1 ) require ( @@ -31,6 +31,6 @@ require ( github.com/rogpeppe/go-charset v0.0.0-20190617161244-0dc95cdf6f31 // indirect github.com/stretchr/testify v1.7.1 // indirect golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect - google.golang.org/protobuf v1.28.0 // indirect - gopkg.in/yaml.v3 v3.0.0 // indirect + google.golang.org/protobuf v1.33.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/src/supervisord/webgui/index.html b/src/supervisord/webgui/index.html index 27b6b188..23f88a38 100644 --- a/src/supervisord/webgui/index.html +++ b/src/supervisord/webgui/index.html @@ -5,6 +5,6 @@