This commit is contained in:
@@ -8,19 +8,22 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: controller
|
runs-on: controller
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout code
|
||||||
|
run: git clone ${GITEA_SERVER_URL}/${GITEA_REPOSITORY} . && git checkout ${GITEA_SHA}
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
image: harbor.merlin.xin/mirrors/gcr.io/kaniko-project/executor:debug
|
|
||||||
run: |
|
run: |
|
||||||
for df in $(find . -name Dockerfile); do
|
echo "Building Docker image..."
|
||||||
dir=$(dirname "$df")
|
# image: harbor.merlin.xin/mirrors/gcr.io/kaniko-project/executor:debug
|
||||||
image_name="${vars.REGISTRY_URL}/testing/merlin/$(basename $dir):${gitea.sha:0:7}"
|
# run: |
|
||||||
/kaniko/executor \
|
# for df in $(find . -name Dockerfile); do
|
||||||
--dockerfile "$df" \
|
# dir=$(dirname "$df")
|
||||||
--context "$dir" \
|
# image_name="${vars.REGISTRY_URL}/testing/merlin/$(basename $dir):${gitea.sha:0:7}"
|
||||||
--destination "$image_name" \
|
# /kaniko/executor \
|
||||||
--cache=true \
|
# --dockerfile "$df" \
|
||||||
--username "${secrets.HARBOR_USER_NAME}" \
|
# --context "$dir" \
|
||||||
--password "${secrets.HARBOR_USER_SECRET}"
|
# --destination "$image_name" \
|
||||||
echo "✅ Successfully built and pushed $image_name"
|
# --cache=true \
|
||||||
done
|
# --username "${secrets.HARBOR_USER_NAME}" \
|
||||||
|
# --password "${secrets.HARBOR_USER_SECRET}"
|
||||||
|
# echo "✅ Successfully built and pushed $image_name"
|
||||||
|
# done
|
||||||
Reference in New Issue
Block a user