Compare commits
16 Commits
v3.9.3-nat
...
v4.0.9-nat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27c3ab7b82 | ||
|
|
67ce2b5c86 | ||
|
|
be67a8fef0 | ||
|
|
6b47cfd5f8 | ||
|
|
d5ab5e6727 | ||
|
|
adcf60eeb6 | ||
|
|
5b20c46c5d | ||
|
|
472edfaabd | ||
|
|
e8ac7f9fbc | ||
|
|
cb418d8acd | ||
|
|
d4d6064bcd | ||
|
|
297ce02549 | ||
|
|
4f7cfe396a | ||
|
|
521ac4d3f6 | ||
|
|
095245b421 | ||
|
|
af390af277 |
@@ -21,27 +21,40 @@ env:
|
||||
# 构建 Job
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-node22 # 如果host构建 :linux_amd64
|
||||
runs-on: ubuntu-node22 # 如果host构建:linux_amd64
|
||||
# container:
|
||||
# image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
|
||||
- name: Print system info 1
|
||||
run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
|
||||
- name: Print system info 2
|
||||
run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
|
||||
- name: Print system info 3
|
||||
run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
|
||||
- name: Print env
|
||||
run: env
|
||||
run: env && blkid
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update &&
|
||||
apt-get install -y gettext &&
|
||||
apt-get install -y maven &&
|
||||
apt-get install -y sudo &&
|
||||
apt-get install -y iptables
|
||||
apt-get install -y iptables &&
|
||||
|
||||
- name: Set up Docker
|
||||
uses: http://139.9.216.111:3000/bamanker/setup-docker-action@v4
|
||||
with:
|
||||
version: type=archive,channel=stable,version=v27.4.0
|
||||
daemon-config: |
|
||||
{
|
||||
"registry-mirrors":["https://docker.1ms.run"],
|
||||
"dns": ["8.8.8.8", "114.114.114.114"]
|
||||
}
|
||||
- name: Generate maven config
|
||||
uses: http://139.9.216.111:3000/bamanker/maven-settings-action@v3.1.0
|
||||
with:
|
||||
@@ -74,8 +87,6 @@ jobs:
|
||||
run: |
|
||||
echo "The app version is $APP_TAG" && echo "tag=$APP_TAG" >> $GITHUB_OUTPUT &&
|
||||
echo "now workspace: ${{ github.workspace }}" &&
|
||||
pwd &&
|
||||
docker version
|
||||
|
||||
# 为其他配置文件注入环境变量
|
||||
- name: Inject envVar
|
||||
@@ -117,7 +128,12 @@ jobs:
|
||||
env:
|
||||
TAG: ${{ steps.set_envar.outputs.tag }}
|
||||
run: |
|
||||
docker buildx build --tag ${{ 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
|
||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
||||
# ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push.
|
||||
# uses: http://139.9.216.111:3000/bamanker/docker-build-push@v5
|
||||
# with:
|
||||
# context: .
|
||||
## platforms: linux/amd64
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user