Compare commits

...

13 Commits

Author SHA1 Message Date
bamanker
adcf60eeb6 修改了dockerfile中的基础镜像2
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m12s
2026-01-04 12:23:20 +08:00
bamanker
5b20c46c5d 修改了dockerfile中的基础镜像1
Some checks failed
Build Push and Deploy Image / build (push) Failing after 20m34s
2026-01-04 11:37:15 +08:00
bamanker
472edfaabd 修改了dockerfile中的基础镜像
Some checks failed
Build Push and Deploy Image / build (push) Failing after 23m17s
2026-01-04 10:55:40 +08:00
bamanker
e8ac7f9fbc 修改了安装docker方法13
Some checks failed
Build Push and Deploy Image / build (push) Failing after 20m56s
2026-01-03 22:59:52 +08:00
bamanker
cb418d8acd 修改了安装docker方法12
Some checks failed
Build Push and Deploy Image / build (push) Failing after 21m9s
2026-01-03 22:33:39 +08:00
bamanker
d4d6064bcd 修改了安装docker方法12
Some checks failed
Build Push and Deploy Image / build (push) Failing after 20m59s
2026-01-02 15:22:06 +08:00
bamanker
297ce02549 修改了安装docker方法11
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2026-01-02 00:10:40 +08:00
bamanker
4f7cfe396a 修改了安装docker方法10
Some checks failed
Build Push and Deploy Image / build (push) Failing after 21m14s
2026-01-01 23:43:45 +08:00
bamanker
521ac4d3f6 修改了安装docker方法9
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2026-01-01 22:55:47 +08:00
bamanker
095245b421 修改了安装docker方法8
Some checks failed
Build Push and Deploy Image / build (push) Failing after 20m11s
2026-01-01 16:46:08 +08:00
bamanker
af390af277 修改了安装docker方法7
Some checks failed
Build Push and Deploy Image / build (push) Failing after 35m12s
2026-01-01 10:39:29 +08:00
bamanker
3e55783c5f 修改了安装docker方法6
Some checks failed
Build Push and Deploy Image / build (push) Failing after 22m22s
2026-01-01 09:51:58 +08:00
bamanker
b2fba3cac7 修改了安装docker方法5
Some checks failed
Build Push and Deploy Image / build (push) Failing after 29m20s
2025-12-31 23:46:55 +08:00
2 changed files with 12 additions and 7 deletions

View File

@@ -39,9 +39,10 @@ jobs:
apt-get install -y gettext && apt-get install -y gettext &&
apt-get install -y maven && apt-get install -y maven &&
apt-get install -y sudo && apt-get install -y sudo &&
apt-get install -y iptables apt-get install -y iptables &&
- name: Set up Docker apt-get install -y docker
uses: http://139.9.216.111:3000/bamanker/setup-docker-action@v4 # - name: Set up Docker
# uses: http://139.9.216.111:3000/bamanker/setup-docker-action@v4
- name: Generate maven config - name: Generate maven config
uses: http://139.9.216.111:3000/bamanker/maven-settings-action@v3.1.0 uses: http://139.9.216.111:3000/bamanker/maven-settings-action@v3.1.0
with: with:
@@ -74,8 +75,8 @@ jobs:
run: | run: |
echo "The app version is $APP_TAG" && echo "tag=$APP_TAG" >> $GITHUB_OUTPUT && echo "The app version is $APP_TAG" && echo "tag=$APP_TAG" >> $GITHUB_OUTPUT &&
echo "now workspace: ${{ github.workspace }}" && echo "now workspace: ${{ github.workspace }}" &&
pwd && docker version &&
docker version docker --help
# 为其他配置文件注入环境变量 # 为其他配置文件注入环境变量
- name: Inject envVar - name: Inject envVar
@@ -117,7 +118,11 @@ jobs:
env: env:
TAG: ${{ steps.set_envar.outputs.tag }} TAG: ${{ steps.set_envar.outputs.tag }}
run: | run: |
docker buildx build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push. ls &&
docker build --file Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} . &&
docker image ls
# ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push.
# uses: http://139.9.216.111:3000/bamanker/docker-build-push@v5
# with: # with:
# context: . # context: .
## platforms: linux/amd64 ## platforms: linux/amd64

View File

@@ -1,5 +1,5 @@
# 基于 java25 构建 # 基于 java25 构建
FROM ubuntu:jammy FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/ubuntu:jammy
# 基于构建上下文 . 进行COPY 文件到 /root目录下 # 基于构建上下文 . 进行COPY 文件到 /root目录下
COPY target/myk3sTest /root/myk3sTest/ COPY target/myk3sTest /root/myk3sTest/
EXPOSE 9090 EXPOSE 9090