Skip to content

Commit

Permalink
feat: Optimize the CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghe-fit2cloud committed Nov 29, 2024
1 parent 23087bd commit 7327ee3
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,7 +40,6 @@ frontend/components.d.ts
frontend/src/xpack
backend/xpack
*_xpack.go

.history/
dist/
1pctl
Expand Down
5 changes: 3 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -42,6 +42,7 @@ archives:
- install.sh
- README.md
- LICENSE
- GeoIP.mmdb

checksum:
name_template: 'checksums.txt'
Expand Down
Binary file modified .idea/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ enforcement ladder](https://github.com/mozilla/diversity).

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
https://www.contributor-covenant.org/translations.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOARCH=$(shell go env GOARCH)
GOOS=$(shell go env GOOS )
GOOS=$(shell go env GOOS)

BASE_PAH := $(shell pwd)
BUILD_PATH = $(BASE_PAH)/build
Expand Down
8 changes: 0 additions & 8 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# 安全说明

如果您发现安全问题,请直接联系我们:

- wanghe@fit2cloud.com

感谢您的支持!

# Security Policy

All security bugs should be reported to the contact as below:
Expand Down
6 changes: 5 additions & 1 deletion script.sh → ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ if [ ! -f "install.sh" ]; then
wget https://github.com/1Panel-dev/installer/raw/main/install.sh
fi

chmod 755 1pctl install.sh
if [ ! -f "GeoIP.mmdb" ]; then
wget https://resource.1panel.hk/geo/GeoIP.mmdb
fi

chmod 755 1pctl install.sh

0 comments on commit 7327ee3

Please sign in to comment.