From 7327ee3ff87306f47e142d313a1269cedc9b2730 Mon Sep 17 00:00:00 2001 From: wanghe-fit2cloud Date: Fri, 29 Nov 2024 15:11:13 +0800 Subject: [PATCH] feat: Optimize the CI script --- .gitignore | 3 --- .goreleaser.yaml | 5 +++-- .idea/icon.png | Bin 9330 -> 3374 bytes CODE_OF_CONDUCT.md | 2 +- Makefile | 2 +- SECURITY.md | 8 -------- script.sh => ci/script.sh | 6 +++++- 7 files changed, 10 insertions(+), 16 deletions(-) rename script.sh => ci/script.sh (79%) diff --git a/.gitignore b/.gitignore index a49bfc19fc79..5e6f2189d138 100644 --- a/.gitignore +++ b/.gitignore @@ -22,14 +22,12 @@ build/1panel *.iml *.ipr - # Test binary, built with `go test -c` *.test # Output of the go coverage tool, specifically when used with LiteIDE *.out - # Dependency directories /pkg/ backend/__debug_bin @@ -42,7 +40,6 @@ frontend/components.d.ts frontend/src/xpack backend/xpack *_xpack.go - .history/ dist/ 1pctl diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ca4ecfe123cd..e3c781fa18c3 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -6,8 +6,8 @@ before: hooks: # - export NODE_OPTIONS="--max-old-space-size=8192" # - make build_web - - chmod +x ./script.sh - - ./script.sh + - chmod +x ./ci/script.sh + - ./ci/script.sh - sed -i 's@ORIGINAL_VERSION=.*@ORIGINAL_VERSION=v{{ .Version }}@g' 1pctl - go mod tidy @@ -42,6 +42,7 @@ archives: - install.sh - README.md - LICENSE + - GeoIP.mmdb checksum: name_template: 'checksums.txt' diff --git a/.idea/icon.png b/.idea/icon.png index 6f82a12d56b666914ee686321551411e970d4db5..4e2448e0b6b5c6a04a8a438354c5e0226b17a5a8 100644 GIT binary patch literal 3374 zcmd5x`ir4iuS#7B1fp2xOtAI1{MUS` zZQSRs{n_V^NzJ=m`&BH9lnzkdbxh0hDDC&(hI8|z#nq2Ymg;KN-dfPHgZnT4xiTqK zy;S<;dfr>aa$rJ4R;U6H&mSGB3Vr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