We want to create Moodle plugins which need custom zip-file names and a custom top-level directory.
Gitlab release | Moodle | |
---|---|---|
Repository name | <custom> |
moodle-<plugin-type>_<plugin-name> |
ZIP-file top-level directory | <CI_PROJECT_NAME>-<CI_COMMIT_TAG> |
<plugin-name> |
Zip-file name | <CI_PROJECT_NAME>-<CI_COMMIT_TAG>.zip |
<plugin-type>_<plugin-name>_moodle<Moodle_MajorMinor_version>_<tag YYYYMMDDnn>.zip |
How can we download CI/CD ZIP-files from Gitlab via cURL with correct filenames?
-
What version are you on?
- GitLab Community Edition v16.3.0
-
Are you using self-managed or GitLab.com?
- Self-managed
-
What troubleshooting steps have you already taken?
- Release → wrong ZIP file name and wrong top-level directory.
- Artifacts → wget and cURL cannot resolve filename from headers.
- zip-command in .gitlab-ci.yml + Generic Package Repository → wget and cURL cannot resolve filename from headers.
-
Can you link to any docs or other resources so we know where you have been?
Predefined variables reference | GitLab
`.gitlab-ci.yml` keyword reference | GitLab
Releases | GitLab
Job artifacts | GitLab
GitLab Generic Packages Repository | GitLab