Giter VIP home page Giter VIP logo

deploy's Introduction

Just a crappy little program that can download job artefacts from a gitlab runner.

Just configure it via toml, and away you go.

Usage

deploy service

deploy service service2

Configuration

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.