Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dex4er/gitlab-download-release
Downloads the assets from Gitlab releases
https://github.com/dex4er/gitlab-download-release
Last synced: about 2 months ago
JSON representation
Downloads the assets from Gitlab releases
- Host: GitHub
- URL: https://github.com/dex4er/gitlab-download-release
- Owner: dex4er
- License: mit
- Created: 2023-05-24T19:51:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-17T18:43:49.000Z (3 months ago)
- Last Synced: 2024-09-17T23:10:32.029Z (3 months ago)
- Language: PowerShell
- Size: 52.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitlab-download-release
[![GitHub](https://img.shields.io/github/v/tag/dex4er/gitlab-download-release?label=GitHub)](https://github.com/dex4er/gitlab-download-release)
[![Snapshot](https://github.com/dex4er/gitlab-download-release/actions/workflows/snapshot.yaml/badge.svg)](https://github.com/dex4er/gitlab-download-release/actions/workflows/snapshot.yaml)
[![Release](https://github.com/dex4er/gitlab-download-release/actions/workflows/release.yaml/badge.svg)](https://github.com/dex4er/gitlab-download-release/actions/workflows/release.yaml)
[![Trunk Check](https://github.com/dex4er/gitlab-download-release/actions/workflows/trunk.yaml/badge.svg)](https://github.com/dex4er/gitlab-download-release/actions/workflows/trunk.yaml)
[![Docker Image Version](https://img.shields.io/docker/v/dex4er/gitlab-download-release/latest?label=docker&logo=docker)](https://hub.docker.com/r/dex4er/gitlab-download-release)Download release from Gitlab project
## Usage
```console
gitlab-download-release [flags]
```### Options
```console
-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:
```yaml
stages:
- downloaddownload:
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
```