This commit is contained in:
@@ -6,13 +6,30 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
# runs-on: [rke2,docker]
|
|
||||||
runs-on: gitea-official-runner
|
runs-on: gitea-official-runner
|
||||||
# runs-on: runner
|
|
||||||
container:
|
container:
|
||||||
image: harbor.merlin.xin/mirrors/docker.io/library/node:20-bullseye
|
image: harbor.merlin.xin/testing/merlin/buildkit-node:v0.13.20
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: see ls
|
- name: see ls
|
||||||
run: ls
|
run: ls
|
||||||
|
- name: see vars
|
||||||
|
run: echo "HARBOR is ${vars.HARBOR}, TAG is ${TAG}"
|
||||||
|
# - name: Build and push Docker images
|
||||||
|
# run: |
|
||||||
|
# ROOT_DIR=$(pwd)
|
||||||
|
|
||||||
|
# # 遍历所有包含 Dockerfile 的目录
|
||||||
|
# find . -type f -name "Dockerfile" | while read dockerfile; do
|
||||||
|
# dir=$(dirname "$dockerfile")
|
||||||
|
# name=$(basename "$dir")
|
||||||
|
|
||||||
|
# IMAGE_NAME="${vars.HARBOR}/testing/merlin/${name}:${TAG}"
|
||||||
|
|
||||||
|
# buildctl build \
|
||||||
|
# --frontend dockerfile.v0 \
|
||||||
|
# --local context="$dir" \
|
||||||
|
# --local dockerfile="$dir" \
|
||||||
|
# --output type=image,name="$IMAGE_NAME",push=true
|
||||||
|
# done
|
||||||
Reference in New Issue
Block a user