Sign inSign up

dex4er/gitlab-download-release

By dex4er

Updated about 3 years ago

Downloads the assets from Gitlab releases

Image
0

1.9K

dex4er/gitlab-download-release repository overview

gitlab-download-release

GitHub Snapshot Release Trunk Check Docker Image Version

Download release from Gitlab project

Usage

gitlab-download-release [flags]
Options
  -n, --dry-run                do not download and print what might be downloaded
  -f, --file NAME              NAME of asset to download (default is all)
  -t, --gitlab-token-env VAR   name for environment VAR with Gitlab token (default "GITLAB_TOKEN")
  -g, --gitlab-url URL         URL of the Gitlab instance (default "https://gitlab.com")
  -h, --help                   help for gitlab-download-release
  -l, --list                   list releases or assets or URL of asset rather than download
  -p, --project PROJECT        PROJECT with releases
  -r, --release RELEASE        RELEASE tag to download (default is last release)
  -O, --to-stdout              send to stdout rather than to file (only single file)
  -v, --version                version for gitlab-download-release

.gitlab-ci.yml

If run in CI then by default gitlab-download-release uses GITHUB_TOKEN and downloads all files from the current project.

Example:

stages:
  - download

download:
  stage: download
  image:
    name: dex4er/gitlab-download-release
    entrypoint: [""]
  variables:
    GIT_STRATEGY: none
  script:
    - echo -e "\e[0Ksection_start:`date +%s`:download\r\e[0KDownload"
    - mkdir release
    - cd release
    - gitlab-download-release
    - sha256sum -c checksums.txt
    - echo -e "\e[0Ksection_end:`date +%s`:download\r\e[0K"
  artifacts:
    paths:
      - release/
    expire_in: 1 week

Tag summary

Content type

Image

Digest

sha256:b17646e52

Size

6.2 MB

Last updated

about 3 years ago

docker pull dex4er/gitlab-download-release:v0.1.1-SNAPSHOT-44e9b40