From 0c86f9e30997cc289ad09d2b3547a1347c72d124 Mon Sep 17 00:00:00 2001 From: Ole Langbehn <ole.langbehn@inoio.de> Date: Sat, 19 Oct 2024 21:46:01 +0200 Subject: [PATCH] add --allow-import to deno commands --- .gitlab-ci.yml | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 88ff2c6..30c767b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,7 +52,7 @@ cache_lint_test: image: 'europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/denoland/deno:2.0.0' stage: 'test' script: - - deno cache --lock=deno.lock app/deps.ts app/dev_deps.ts + - deno cache --allow-import --lock=deno.lock app/deps.ts app/dev_deps.ts - deno fmt --check - deno lint - deno test diff --git a/Dockerfile b/Dockerfile index c920fe8..fe99ef9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ COPY deno.lock . COPY deno.json . COPY ./app ./app -RUN deno cache --lock=deno.lock app/deps.ts -RUN deno cache --lock=deno.lock app/main.ts +RUN deno cache --allow-import --lock=deno.lock app/deps.ts +RUN deno cache --allow-import --lock=deno.lock app/main.ts CMD ["deno", "run", "--allow-net", "--allow-env", "--lock=deno.lock", "--cached-only", "app/main.ts"] -- GitLab