Compare commits
12 Commits
v3.7.0-nat
...
v3.8.4-nat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
373b497d37 | ||
|
|
6d1dc22670 | ||
|
|
52e4616bb3 | ||
|
|
79fba8746f | ||
|
|
80122ebe57 | ||
|
|
148672031f | ||
|
|
fdcc48178f | ||
|
|
1f9029baf1 | ||
|
|
df57e63c3e | ||
|
|
d6b67b428b | ||
|
|
f3eeaf48fd | ||
|
|
46f1b7ca22 |
@@ -21,7 +21,7 @@ env:
|
||||
# 构建 Job
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-node24 # 如果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:
|
||||
@@ -34,7 +34,18 @@ jobs:
|
||||
- name: Print env
|
||||
run: env
|
||||
- name: Install dependencies
|
||||
run: apt-get update && apt-get install -y gettext && apt-get install -y maven && apt-get install -y docker.io
|
||||
run: apt-get update &&
|
||||
apt-get install -y gettext &&
|
||||
apt-get install -y maven &&
|
||||
apt-get install coreutils &&
|
||||
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add &&
|
||||
cd /etc/apt/sources.list.d &&
|
||||
touch docker.list &&
|
||||
chmod 666 docker.list &&
|
||||
echo "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" > docker.list &&
|
||||
apt-get update && && apt upgrade &&
|
||||
apt-get install -y docker-ce docker-ce-cli containerd.io
|
||||
|
||||
- name: Generate maven config
|
||||
uses: http://139.9.216.111:3000/bamanker/maven-settings-action@v3.1.0
|
||||
with:
|
||||
@@ -67,7 +78,8 @@ jobs:
|
||||
run: |
|
||||
echo "The app version is $APP_TAG" && echo "tag=$APP_TAG" >> $GITHUB_OUTPUT &&
|
||||
echo "now workspace: ${{ github.workspace }}" &&
|
||||
pwd
|
||||
pwd &&
|
||||
docker version
|
||||
|
||||
# 为其他配置文件注入环境变量
|
||||
- name: Inject envVar
|
||||
@@ -109,11 +121,7 @@ jobs:
|
||||
env:
|
||||
TAG: ${{ steps.set_envar.outputs.tag }}
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
--tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} \
|
||||
--push \
|
||||
.
|
||||
docker buildx build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push .
|
||||
# with:
|
||||
# context: .
|
||||
## platforms: linux/amd64
|
||||
|
||||
Reference in New Issue
Block a user