ci: 更新Docker工作流配置并清理脚本
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 7m45s
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 7m45s
- 更新TG_CHAT_ID环境变量值 - 简化构建容器镜像配置,使用基础node镜像 - 删除无用的push.sh脚本 - 清理build_docker.sh中的测试容器运行命令
This commit is contained in:
parent
20897de442
commit
ff16d29b8d
@ -21,7 +21,7 @@ env:
|
|||||||
SSH_PASSWORD: ${{ vars.SSH_PASSWORD }}
|
SSH_PASSWORD: ${{ vars.SSH_PASSWORD }}
|
||||||
# TG通知
|
# TG通知
|
||||||
TG_BOT_TOKEN: 8114337882:AAHkEx03HSu7RxN4IHBJJEnsK9aPPzNLIk0
|
TG_BOT_TOKEN: 8114337882:AAHkEx03HSu7RxN4IHBJJEnsK9aPPzNLIk0
|
||||||
TG_CHAT_ID: "-4940243803"
|
TG_CHAT_ID: "-4940243803-11"
|
||||||
# Go构建变量
|
# Go构建变量
|
||||||
SERVICE: ario
|
SERVICE: ario
|
||||||
SERVICE_STYLE: ario
|
SERVICE_STYLE: ario
|
||||||
@ -33,9 +33,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ario-server
|
runs-on: ario-server
|
||||||
container:
|
container:
|
||||||
# 使用包含 Docker、curl、jq、Node.js 的镜像
|
image: node:20
|
||||||
image: cimg/node:20.15.1
|
|
||||||
options: --privileged
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# 只有node支持版本号别名
|
# 只有node支持版本号别名
|
||||||
|
|||||||
23
push.sh
23
push.sh
@ -1,23 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# build-and-push.sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# cd /Users/Apple/code2025/server
|
|
||||||
cd /Users/Apple/vpn/ppanel-server
|
|
||||||
# 固定版本号为latest
|
|
||||||
VERSION=latest
|
|
||||||
|
|
||||||
# 构建镜像
|
|
||||||
echo "Building image with version: $VERSION"
|
|
||||||
docker build -f Dockerfile --platform linux/amd64 --build-arg TARGETARCH=amd64 -t registry.kxsw.us/ppanel/ppanel-server:$VERSION .
|
|
||||||
docker tag registry.kxsw.us/ppanel/ppanel-server:$VERSION registry.kxsw.us/ppanel/ppanel-server:latest
|
|
||||||
|
|
||||||
# 推送镜像
|
|
||||||
echo "Pushing image to registry.kxsw.us"
|
|
||||||
docker push registry.kxsw.us/ppanel/ppanel-server:$VERSION
|
|
||||||
docker push registry.kxsw.us/ppanel/ppanel-server:latest
|
|
||||||
|
|
||||||
|
|
||||||
echo "Build and push completed successfully!"
|
|
||||||
# docker-compose exec certbot certbot certonly --webroot --webroot-path=/etc/letsencrypt -d api-dev.kxsw.us
|
|
||||||
@ -19,12 +19,3 @@ docker push registry.kxsw.us/ppanel/ario-server:$VERSION
|
|||||||
|
|
||||||
echo "Build and push completed successfully!"
|
echo "Build and push completed successfully!"
|
||||||
# docker-compose exec certbot certbot certonly --webroot --webroot-path=/etc/letsencrypt -d api-dev.kxsw.us
|
# docker-compose exec certbot certbot certonly --webroot --webroot-path=/etc/letsencrypt -d api-dev.kxsw.us
|
||||||
|
|
||||||
docker run -d -p 3001:3000 \
|
|
||||||
-e NEXT_PUBLIC_DEFAULT_LANGUAGE=en-US \
|
|
||||||
-e NEXT_PUBLIC_SITE_URL=https://4d3vsw8.88xgaen.hifast.biz \
|
|
||||||
-e NEXT_PUBLIC_API_URL=https://api.hifast.biz \
|
|
||||||
-e NEXT_PUBLIC_DEFAULT_USER_EMAIL=admin@ppanel.dev \
|
|
||||||
-e NEXT_PUBLIC_DEFAULT_USER_PASSWORD=password \
|
|
||||||
--name ppanel-admin-web \
|
|
||||||
ppanel/ppanel-admin-web:latest
|
|
||||||
Loading…
x
Reference in New Issue
Block a user