This commit is contained in:
jack ning
2024-11-25 10:51:32 +08:00
parent 2cdc2b6a1e
commit 1cc03dff97
2 changed files with 5 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
#
# github依次添加以下变量
# 路径Settings -> Secrets And Variables -> Actions
# Repository secrets -> New repository secret -> 输入变量名和值
# SERVER_HOST / Secret服务器公网IP
# SERVER_USERNAME / Secret服务器用户名
# SERVER_PASSWORD / Secret服务器密码
@@ -64,7 +65,7 @@ jobs:
file: ./starter/Dockerfile # 确保 Dockerfile 文件路径正确
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/bytedesk:latest
platforms: linux/amd64,linux/arm64,linux/arm/v7,windows/amd64,windows/arm64,macos/amd64,macos/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v7,windows/x86,windows/arm64,macos/x86,macos/arm64
# 登录阿里云 Docker
- name: login to aliyun docker
run: echo ${{ secrets.ALIYUN_DOCKER_PASSWORD }} | docker login --username ${{ secrets.ALIYUN_DOCKER_USERNAME }} --password-stdin registry.cn-hangzhou.aliyuncs.com
@@ -76,4 +77,4 @@ jobs:
file: ./starter/Dockerfile # 确保 Dockerfile 文件路径正确
push: true
tags: registry.cn-hangzhou.aliyuncs.com/weiyuai/bytedesk:latest
platforms: linux/amd64,linux/arm64,linux/arm/v7,windows/amd64,windows/arm64,macos/amd64,macos/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v7,windows/x86,windows/arm64,macos/x86,macos/arm64

View File

@@ -1,8 +1,8 @@
# https://spring.io/guides/topicals/spring-boot-docker
# https://hub.docker.com/r/jackning/bytedesk
# maven
# FROM eclipse-temurin:17-jdk
FROM adoptopenjdk:17-jdk-hotspot
FROM eclipse-temurin:17-jdk
# FROM adoptopenjdk:17-jdk-hotspot
# maintainer
LABEL maintainer="270580156@qq.com"
# Set the working directory in the container