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中的测试容器运行命令
21 lines
731 B
Bash
Executable File
21 lines
731 B
Bash
Executable File
#!/bin/bash
|
|
# build-and-push.sh
|
|
|
|
set -e
|
|
|
|
cd /Users/Apple/vpn/ppanel-server
|
|
# 固定版本号为latest
|
|
VERSION=v1.0
|
|
|
|
# 构建镜像
|
|
echo "Building image with version: $VERSION"
|
|
docker build -f Dockerfile --platform linux/amd64 --build-arg TARGETARCH=amd64 -t registry.kxsw.us/ppanel/ario-server:$VERSION .
|
|
docker tag registry.kxsw.us/ppanel/ario-server:$VERSION registry.kxsw.us/ppanel/ario-server:$VERSION
|
|
|
|
# 推送镜像
|
|
echo "Pushing image to registry.kxsw.us"
|
|
docker push registry.kxsw.us/ppanel/ario-server:$VERSION
|
|
docker push registry.kxsw.us/ppanel/ario-server:$VERSION
|
|
|
|
echo "Build and push completed successfully!"
|
|
# docker-compose exec certbot certbot certonly --webroot --webroot-path=/etc/letsencrypt -d api-dev.kxsw.us |