fix(ci): 使用绝对路径调用 apt-get (host 模式)
This commit is contained in:
@@ -27,8 +27,8 @@ jobs:
|
||||
|
||||
- name: Set up JDK 17
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq openjdk-17-jdk
|
||||
/usr/bin/apt-get update -qq
|
||||
/usr/bin/apt-get install -y -qq openjdk-17-jdk
|
||||
java -version
|
||||
|
||||
- name: Build with Maven
|
||||
@@ -40,7 +40,7 @@ jobs:
|
||||
|
||||
- name: Build & Push Docker image
|
||||
run: |
|
||||
apt-get install -y -qq docker.io
|
||||
/usr/bin/apt-get install -y -qq docker.io
|
||||
TAG=${{ gitea.sha }}
|
||||
docker build -t $REGISTRY/$APP:$TAG -t $REGISTRY/$APP:${{ inputs.environment }} .
|
||||
docker push $REGISTRY/$APP:$TAG
|
||||
|
||||
Reference in New Issue
Block a user