Skip to content
Snippets Groups Projects
Commit 7525a94e authored by Timo Furrer's avatar Timo Furrer
Browse files

Merge branch 'add-tarignore' into 'main'

feat: ignore files defined in .tarignore

See merge request components/opentofu!246
parents 23004448 fc299eba
No related branches found
No related tags found
No related merge requests found
Pipeline #263669 failed
......@@ -34,18 +34,21 @@ spec:
'$[[ inputs.as ]]':
stage: $[[ inputs.stage ]]
image: curlimages/curl:8.8.0
image: debian:bookworm-slim
variables:
TAR_FILENAME: /tmp/${CI_PROJECT_NAME}-${CI_COMMIT_SHA}.tgz
GITLAB_TOFU_ROOT_DIR: $[[ inputs.root_dir ]]
UPLOAD_URL:
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/terraform/modules/$[[ inputs.module_name ]]/$[[ inputs.module_system ]]/$[[ inputs.module_version ]]/file
before_script:
- apt update && apt install -y --no-install-recommends ca-certificates curl
script:
- >-
tar -vczf "$TAR_FILENAME"
-C "$GITLAB_TOFU_ROOT_DIR"
--exclude=./.git
--exclude=./.terraform*
--exclude-ignore=.tarignore
.
- >-
curl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment