diff --git a/.gitignore b/.gitignore index 67b455c..1081f0a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /bin/ /cache/ image-ref.out +/kodata/pkgproxy.yaml # local openspec setup package.json diff --git a/Makefile b/Makefile index 258ace4..cd6f0a7 100644 --- a/Makefile +++ b/Makefile @@ -166,6 +166,9 @@ image-build: ## Build container image with ko $(info ***********************************************************) $(info ********** EXECUTING 'image-build' MAKE TARGET ************) $(info ***********************************************************) + trap 'rm -f kodata/pkgproxy.yaml' EXIT; \ + mkdir -p kodata; \ + cp configs/pkgproxy.yaml kodata/pkgproxy.yaml; \ KO_DOCKER_REPO=$${KO_DOCKER_REPO:-ko.local} \ KO_DATA_DATE_EPOCH=$$(git log -1 --format='%ct') \ VERSION=$(VERSION) \ diff --git a/kodata/pkgproxy.yaml b/kodata/pkgproxy.yaml deleted file mode 120000 index 52061bf..0000000 --- a/kodata/pkgproxy.yaml +++ /dev/null @@ -1 +0,0 @@ -../configs/pkgproxy.yaml \ No newline at end of file