Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

uolcz/reviewapps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Review apps

Usages and examples of this project are placed on Medium (in czech language only).

Installation

  • Install docker
  • Install docker-compose
  • Install and register gitlab-runner with shell executor configuration
  • docker network create reverseproxy
  • Enable and configure traefik
  • Copy directory structure to RA server (all files are placed under /usr/local/).
  • Configure /usr/local/etc/reviewapps.conf

Usage

Initialize project

This step create directory structure for specific project.

reviewapps new-project my_project
# Add build instructions specific to given project to $ROOT/$PROJECT/bin/build.sh

Create app from branch

# Call from gitlab-runner
reviewapps up my_project some_branch /home/gitlab-runner/sources-of-some-branch

Destroy app

# Call from gitlab-runner
reviewapps down my_project some_branch

Exit codes

  • 0 - Success
  • 1 - Missing or wrong parameters
  • 2 - Missing dependencies
  • 3 - Lack of resources
  • 4 - Project is not initialized
  • 5 - Others

Releases

No releases published

Packages

No packages published

Languages