forked from ochinchina/supervisord
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* re-org project structure * debug ci * fix code * add goreleaser * update doc & ci * fix docker daemon
- Loading branch information
Showing
129 changed files
with
335 additions
and
1,084 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,57 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
branches: [ main ] | ||
paths-ignore: | ||
- "*.md" | ||
|
||
pull_request: | ||
branches: [ "master" ] | ||
branches: [ main ] | ||
paths-ignore: | ||
- "*.md" | ||
|
||
jobs: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
build: | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BUILDKIT_PROGRESS: "plain" # Full logs for CI build. | ||
REGISTRY_URL: "docker.io" # docker.io or other target registry URL: where to push images to. | ||
REGISTRY_SRC: "docker.io" # For BASE_NAMESPACE of images: where to pull base images from. | ||
# DOCKER_REGISTRY_USERNAME and DOCKER_REGISTRY_PASSWORD is required for docker image push, they should be set in CI secrets. | ||
DOCKER_REGISTRY_USERNAME: ${{ secrets.DOCKER_REGISTRY_USERNAME }} | ||
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | ||
# used to sync image to mirror registry | ||
DOCKER_MIRROR_REGISTRY_USERNAME: ${{ secrets.DOCKER_MIRROR_REGISTRY_USERNAME }} | ||
DOCKER_MIRROR_REGISTRY_PASSWORD: ${{ secrets.DOCKER_MIRROR_REGISTRY_PASSWORD }} | ||
|
||
jobs: | ||
build_docker_image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.18 | ||
go-version: 1.22 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: go build -v ./... | ||
- name: Build Docker | ||
run: | | ||
source ./tool.sh && build_image supervisord latest src/supervisord.Dockerfile && push_image | ||
- name: Test | ||
run: go test -v ./... | ||
build_binary: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build Binary | ||
run: | | ||
set -eux | ||
pwd && ls -alh * | ||
cd src/supervisord | ||
go mod tidy | ||
go test -v | ||
go build -v -o ../../build/ | ||
cd ../../ | ||
mv src/etc src/webgui ./build/ | ||
ls -alh build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
.idea | ||
supervisord | ||
supervisord.exe | ||
.vscode | ||
|
||
build/ | ||
logs | ||
data | ||
pkg/ | ||
tmp/ | ||
dist | ||
upload | ||
node_modules/ | ||
.next/ | ||
|
||
go.sum | ||
test.log* | ||
.tags* | ||
debug | ||
go-debug.json | ||
vendor | ||
supervisord_linux_amd64 | ||
upx | ||
dist | ||
*.exe | ||
*.db | ||
*.db-journal |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.