fix: build test
All checks were successful
Docker Image CI / build (push) Successful in 2s

This commit is contained in:
merlin
2025-10-22 14:48:02 +08:00
parent 9e614e2fd4
commit 8c05e997c0

View File

@@ -18,28 +18,9 @@ jobs:
HARBOR_PASSWORD: ${{ secrets.HARBOR_ROBOT_SECRET }}
HARBOR_URL: ${{ vars.HARBOR_URL }}
run: docker login ${HARBOR_URL} -u ${HARBOR_USERNAME} -p ${HARBOR_PASSWORD}
- name: test
run: docker --version
# - name: Build and push Docker images
# env:
# HARBOR: ${{ vars.HARBOR }}
# TAG: ${{ github.sha }}
# run: |
# mkdir -p /tmp/buildkit
# /usr/local/bin/buildkitd --oci-worker false --containerd-worker true &
# sleep 5 # 等待 buildkitd 启动
# ROOT_DIR=$(pwd)
# # 遍历所有包含 Dockerfile 的目录
# find . -type f -name "Dockerfile" | while read dockerfile; do
# dir=$(dirname "$dockerfile")
# name=$(basename "$dir")
# IMAGE_NAME="${HARBOR}/testing/merlin/${name}:${TAG}"
# /usr/local/bin/buildctl build \
# --frontend dockerfile.v0 \
# --local context="$dir" \
# --local dockerfile="$dir" \
# --output type=image,name="$IMAGE_NAME",push=true
# done
- name: Build and push Docker images
env:
HARBOR: ${{ vars.HARBOR_URL }}
TAG: ${{ github.sha }}
run: |
echo $HARBOR_URL