scalingo_deployer

package module
v0.0.0-...-666e4b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

scalingo_deployer

Description

Dockerized app to deploy to scalingo PaaS provider.

Usage

On semaphore CI for example

docker run
  -e SCALINGO_APP
  -e GITHUB_OWNER_REPO=$SEMAPHORE_GIT_REPO_SLUG
  -e GIT_REF=$SEMAPHORE_GIT_SHA
  -e GITHUB_API_TOKEN=$GITHUB_API_TOKEN
  -e SCALINGO_API_TOKEN=$SCALINGO_API_TOKEN
  gcr.io/betterplace-183212/scalingo_deployer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(config Config)

Types

type Config

type Config struct {
	GithubOwnerRepo     string `split_words:"true" required:"true" desc:"github repo in owner/repo format"`
	GithubAPIToken      string `split_words:"true" required:"true" desc:"github API token with read access to github repo content"`
	GitRef              string `split_words:"true" required:"true" desc:"the git reference to deploy"`
	ScalingoAPIEndpoint string `split_words:"true" required:"true" default:"https://api.osc-fr1.scalingo.com" desc:"the scalingo API endpoint to use"`
	ScalingoApp         string `split_words:"true" required:"true" desc:"the name of the scalingo app to deploy"`
	ScalingoAPIToken    string `split_words:"true" required:"true" desc:"the scalingo API token to use"`
	HappeningURL        string `split_words:"true" desc:"optional happening URL to report deployments to"`
}

func (*Config) GithubOwner

func (config *Config) GithubOwner() string

func (*Config) GithubRepo

func (config *Config) GithubRepo() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL