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