packaging terraform module in gitlab

#382
Raw
Author
Anonymous
Created
Sept. 6, 2021, 2:49 p.m.
Expires
Never
Size
395 bytes
Hits
45
Syntax
YAML
image: curlimages/curl:latest

stages:
  - upload
  - download

upload:
  stage: upload
  script:
    - tar -zcvf module.tar.gz .
    - ls
    - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file module.tar.gz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/module/0.0.1/module.tar.gz"'
    - echo ci_project_id
    - echo ${CI_PROJECT_ID}