diff options
Diffstat (limited to 'qa/qa/fixtures/package_managers/generic/generic_upload_install_package.yaml.erb')
-rw-r--r-- | qa/qa/fixtures/package_managers/generic/generic_upload_install_package.yaml.erb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qa/qa/fixtures/package_managers/generic/generic_upload_install_package.yaml.erb b/qa/qa/fixtures/package_managers/generic/generic_upload_install_package.yaml.erb new file mode 100644 index 00000000000..13fe3e2c62e --- /dev/null +++ b/qa/qa/fixtures/package_managers/generic/generic_upload_install_package.yaml.erb @@ -0,0 +1,18 @@ +image: curlimages/curl:latest + +stages: + - upload + - download + +upload: + stage: upload + script: + - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file file.txt ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/<%= package.name %>/0.0.1/file.txt' + tags: + - runner-for-<%= project.name %> +download: + stage: download + script: + - 'wget --header="JOB-TOKEN: $CI_JOB_TOKEN" ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/<%= package.name %>/0.0.1/file.txt -O file_downloaded.txt' + tags: + - runner-for-<%= project.name %>
\ No newline at end of file |