Compare commits
7 Commits
v3.7.1-nat
...
v3.7.9-nat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80122ebe57 | ||
|
|
148672031f | ||
|
|
fdcc48178f | ||
|
|
1f9029baf1 | ||
|
|
df57e63c3e | ||
|
|
d6b67b428b | ||
|
|
f3eeaf48fd |
@@ -34,7 +34,21 @@ 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 &&
|
||||
apt-get update &&
|
||||
apt-get install ca-certificates curl &&
|
||||
install -m 0755 -d /etc/apt/keyrings &&
|
||||
curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc &&
|
||||
chmod a+r /etc/apt/keyrings/docker.asc &&
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
|
||||
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" |
|
||||
# tee /etc/apt/sources.list.d/docker.list > /dev/null &&
|
||||
apt-get update &&
|
||||
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
- name: Generate maven config
|
||||
uses: http://139.9.216.111:3000/bamanker/maven-settings-action@v3.1.0
|
||||
with:
|
||||
@@ -67,7 +81,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,10 +124,7 @@ jobs:
|
||||
env:
|
||||
TAG: ${{ steps.set_envar.outputs.tag }}
|
||||
run: |
|
||||
docker buildx build \
|
||||
-t ${{ 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