GitLab CI: artifacts:

From wikieduonline
Revision as of 11:46, 8 December 2022 by Ant (talk | contribs)
Jump to navigation Jump to search

artifacts:


 artifacts:
   name: "Your name $CI_COMMIT_SHA"
   paths:
     - mycv.pdf
   expire_in: 1 week


Examples

build:
  stage: build
  script:
    - echo "BUILD_VARIABLE=value_from_build_job" >> build.env
  artifacts:
    reports:
      dotenv: build.env

deploy:
  stage: deploy
  variables:
    BUILD_VARIABLE: value_from_deploy_job
  script:
    - echo "$BUILD_VARIABLE"  # Output is: 'value_from_build_job' due to precedence
  environment: production


Related

See also

Advertising: