/obs-deployment-tool

OBS deployment tool

Primary LanguageRuby

obs-deployment-tool

CircleCI codebeat badge

This repository contains the mina script to deploy our reference server

Features

  • Check which package is available to be installed
  • Check which was the last deployed commit
  • Check if there is pending migrations
  • View pending migrations
  • View diff of pending changes
  • Deploy with pending migrations
  • Deploy without pending migrations

How to use it

Since mina is a rake Application, it behaves exactly like rake, so to see all available tasks:

$ mina -T

Passing environment variables:

$ PACKAGE_NAME=obs-api-test mina obs:package:available

How to install it

$ git clone https://github.com/openSUSE/obs-deployment-tool.git

$ bundle install

$ mina -T

How to run it in development

rake dev:build

docker-compose up

docker-compose exec client bash

In the client:

ssh root@server

The development tree can be found on the client container /obs-deployment-tool, so it's possible to do:

cd /obs-deployment-tool

bundle install

mina -T

How to contribute with code

Fork the repository and send a pull request with your changes.