https://github.com/jezza/deploy
https://github.com/jezza/deploy
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jezza/deploy
- Owner: Jezza
- License: mit
- Created: 2020-05-07T15:16:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-08T13:28:39.000Z (about 5 years ago)
- Last Synced: 2025-02-12T14:31:10.803Z (4 months ago)
- Language: Rust
- Size: 84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Just a crappy little program that can download job artefacts from a gitlab runner.
Just configure it via `toml`, and away you go.
## Usage
```shell script
deploy servicedeploy service service2
```## Configuration
```toml
host = "gitlab.example.com"
# Default download folder.
output = "/srv/www/deploy"# simply run `deploy service`, and this configuration will be "deployed".
[deploy.service]# Gitlab project name ("group/name" for example)
project = "dev/service"# The git reference for a specific pipeline that was run.
# In this case, the master brach would be used.
ref_name = "master"# The artifact path.
file = "service.jar"# The name of the job itself.
job = "Build Service"# [Optional] Sets the output folder, uses this instead of the global output if present.
output = "/srv/deploy"[deploy.service2]
project = "dev/service2"
ref_name = "master"
file = "service2.jar"
job = "Build Service"```
By default, it'll look for a configuration file within the standard config directories.
Linux: ~/.config/deploys.toml
Windows: Some `appdata` crap. (The application will spit out the location it tried to use, if it finds none.)You can also override the config file via a switch `--config file`