Compare commits
9 Commits
v4.0.2-nat
...
v4.1.1-nat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f39836963 | ||
|
|
d9807291ad | ||
|
|
27c3ab7b82 | ||
|
|
67ce2b5c86 | ||
|
|
be67a8fef0 | ||
|
|
6b47cfd5f8 | ||
|
|
d5ab5e6727 | ||
|
|
adcf60eeb6 | ||
|
|
5b20c46c5d |
@@ -21,18 +21,23 @@ env:
|
|||||||
# 构建 Job
|
# 构建 Job
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-node22 # 如果host构建 :linux_amd64
|
runs-on: ubuntu-node22 # 如果host构建:linux_amd64
|
||||||
# container:
|
# container:
|
||||||
# image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/catthehacker/ubuntu:act-latest
|
# image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Print system info 1
|
- name: Print system info 1
|
||||||
run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event."
|
run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
|
|
||||||
- name: Print system info 2
|
- name: Print system info 2
|
||||||
run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
|
|
||||||
- name: Print system info 3
|
- name: Print system info 3
|
||||||
run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
|
|
||||||
- name: Print env
|
- name: Print env
|
||||||
run: env
|
run: env && blkid
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update &&
|
apt-get update &&
|
||||||
@@ -40,8 +45,16 @@ jobs:
|
|||||||
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
|
- name: Set up Docker
|
||||||
uses: http://139.9.216.111:3000/bamanker/setup-docker-action@v4
|
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
|
- 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:
|
||||||
@@ -73,9 +86,7 @@ jobs:
|
|||||||
id: set_envar
|
id: set_envar
|
||||||
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 }}"
|
||||||
docker version &&
|
|
||||||
docker --help
|
|
||||||
|
|
||||||
# 为其他配置文件注入环境变量
|
# 为其他配置文件注入环境变量
|
||||||
- name: Inject envVar
|
- name: Inject envVar
|
||||||
@@ -118,8 +129,9 @@ jobs:
|
|||||||
TAG: ${{ steps.set_envar.outputs.tag }}
|
TAG: ${{ steps.set_envar.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
ls &&
|
ls &&
|
||||||
docker build --file Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push . &&
|
docker build --file Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} . &&
|
||||||
docker image ls
|
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.
|
# ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push.
|
||||||
# uses: http://139.9.216.111:3000/bamanker/docker-build-push@v5
|
# uses: http://139.9.216.111:3000/bamanker/docker-build-push@v5
|
||||||
# with:
|
# with:
|
||||||
|
|||||||
Reference in New Issue
Block a user