Compare commits

..

5 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
2 changed files with 8 additions and 8 deletions

View File

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

View File

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