mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-11 20:20:48 +08:00
feat: Optimize the packaging process
This commit is contained in:
parent
e118a51ae0
commit
e4c096295f
4 changed files with 12 additions and 12 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue