更新 .gitea/workflows/build-image.yml
Some checks failed
Build Gradle Dragonwell Image / build (push) Failing after 1s
Some checks failed
Build Gradle Dragonwell Image / build (push) Failing after 1s
This commit is contained in:
@@ -21,18 +21,20 @@ env:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self_website
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: herryyun/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Set Gradle version
|
||||
id: gradle
|
||||
run: |
|
||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||
GRADLE_VERSION="${{ github.event.inputs.gradle_version }}"
|
||||
else
|
||||
# 推送触发时使用默认版本
|
||||
# 推送触发时使用默认版本
|
||||
GRADLE_VERSION="8.5"
|
||||
fi
|
||||
|
||||
@@ -47,7 +49,7 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v3 # 这里缺少了缩进
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -91,4 +93,3 @@ jobs:
|
||||
echo " ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest \\" >> $GITHUB_STEP_SUMMARY
|
||||
echo " gradle build --no-daemon" >> $GITHUB_STEP_SUMMARY
|
||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
|
||||
Reference in New Issue
Block a user