fix: build test
Some checks failed
Docker Image CI / build (push) Failing after 2s

This commit is contained in:
merlin
2025-10-22 11:02:05 +08:00
parent b07141417c
commit 039c4809fb

View File

@@ -14,25 +14,23 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: see ls - name: see ls
run: ls run: ls
- name: see vars - name: Build and push Docker images
run: /usr/local/bin/buildctl --version env:
# - name: Build and push Docker images HARBOR: ${{ vars.HARBOR }}
# env: TAG: ${{ github.sha }}
# HARBOR: ${{ vars.HARBOR }} run: |
# TAG: ${{ github.sha }} ROOT_DIR=$(pwd)
# run: |
# ROOT_DIR=$(pwd)
# # 遍历所有包含 Dockerfile 的目录 # 遍历所有包含 Dockerfile 的目录
# find . -type f -name "Dockerfile" | while read dockerfile; do find . -type f -name "Dockerfile" | while read dockerfile; do
# dir=$(dirname "$dockerfile") dir=$(dirname "$dockerfile")
# name=$(basename "$dir") name=$(basename "$dir")
# IMAGE_NAME="${HARBOR}/testing/merlin/${name}:${TAG}" IMAGE_NAME="${HARBOR}/testing/merlin/${name}:${TAG}"
# buildctl build \ /usr/local/bin/buildctl build \
# --frontend dockerfile.v0 \ --frontend dockerfile.v0 \
# --local context="$dir" \ --local context="$dir" \
# --local dockerfile="$dir" \ --local dockerfile="$dir" \
# --output type=image,name="$IMAGE_NAME",push=true --output type=image,name="$IMAGE_NAME",push=true
# done done