feat: Optimize the packaging process

This commit is contained in:
wanghe-fit2cloud 2025-03-06 15:22:44 +08:00
parent e118a51ae0
commit e4c096295f
4 changed files with 12 additions and 12 deletions

View file

@ -9,12 +9,11 @@ before:
- chmod +x ./ci/script.sh - chmod +x ./ci/script.sh
- ./ci/script.sh - ./ci/script.sh
- sed -i 's@ORIGINAL_VERSION=.*@ORIGINAL_VERSION=v{{ .Version }}@g' 1pctl - sed -i 's@ORIGINAL_VERSION=.*@ORIGINAL_VERSION=v{{ .Version }}@g' 1pctl
- cd ./core && go mod tidy
- cd ./agent && go mod tidy
builds: builds:
- id: agent - id: agent
main: ./agent/cmd/server/main.go dir: agent
main: cmd/server/main.go
binary: 1panel-agent binary: 1panel-agent
flags: flags:
- -tags=xpack - -tags=xpack
@ -35,7 +34,8 @@ builds:
- s390x - s390x
- id: core - id: core
main: ./core/cmd/server/main.go dir: core
main: cmd/server/main.go
binary: 1panel-core binary: 1panel-core
flags: flags:
- -tags=xpack - -tags=xpack
@ -56,7 +56,7 @@ builds:
- s390x - s390x
archives: archives:
- format: tar.gz - formats: [ 'tar.gz' ]
builds: builds:
- core - core
- agent - agent

View file

@ -3,9 +3,9 @@ base:
mode: dev mode: dev
remote_url: remote_url:
repo_url: https://resource.fit2cloud.com/1panel/package
resource_url: https://resource.fit2cloud.com/1panel/resource
app_repo: https://apps-assets.fit2cloud.com app_repo: https://apps-assets.fit2cloud.com
repo_url: https://resource.fit2cloud.com/1panel/package/v2
resource_url: https://resource.fit2cloud.com/1panel/resource/v2
log: log:
level: debug level: debug

View file

@ -22,11 +22,11 @@ if [ ! -f "1panel-agent.service" ]; then
fi fi
if [ ! -f "GeoIP.mmdb" ]; then if [ ! -f "GeoIP.mmdb" ]; then
wget https://resource.1panel.pro/geo/GeoIP.mmdb wget https://resource.fit2cloud.com/1panel/package/v2/geo/GeoIP.mmdb
fi fi
if [ ! -f "lang.tar.gz" ]; then if [ ! -f "lang.tar.gz" ]; then
wget https://resource.1panel.pro/language/lang.tar.gz wget https://resource.fit2cloud.com/1panel/package/v2/language/lang.tar.gz
tar zxvf lang.tar.gz tar zxvf lang.tar.gz
rm -rf lang.tar.gz rm -rf lang.tar.gz
fi fi

View file

@ -9,9 +9,9 @@ base:
version: v2.0.0 version: v2.0.0
remote_url: remote_url:
repo_url: https://resource.fit2cloud.com/1panel/package
app_repo: https://apps-assets.fit2cloud.com app_repo: https://apps-assets.fit2cloud.com
resource_url: https://resource.fit2cloud.com/1panel/resource repo_url: https://resource.fit2cloud.com/1panel/package/v2
resource_url: https://resource.fit2cloud.com/1panel/resource/v2
log: log:
level: debug level: debug