sue445 / ci-config-itamae

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ci-config-itamae

Requires

Create personal access token and put to .env as GITHUB_TOKEN

Usage

1. Generate migration file

$ ./bin/generate --help
Usage: generate [options]
    -t, --template=TEMPLATE

e.g.

$ ./bin/generate --template=github_actions some_migration
Write to /path/to/ci-config-itamae/cookbooks/migrate/github_actions/20200311232827_some_migration.rb

2. Apply migration file

$ ./bin/migrate --help
Usage: migrate [options]
        --dry-run
        --log-level=LOG_LEVEL
        --recipe=RECIPE
        --repo=REPO
    -m, --message=COMMIT_MESSAGE
        --include=TAGS
        --exclude=TAGS

e.g.

# Apply to a repo
$ ./bin/migrate --recipe=cookbooks/migrate/github_actions/20200311232827_some_migration.rb -m "This is commit message" --repo=github.com/sue445/rubicure --dry-run

# Apply to multiple repos
$ ./bin/migrate --recipe=cookbooks/migrate/github_actions/20200311232827_some_migration.rb -m "This is commit message" --include=gem --dry-run

Run ./bin/migrate without --dry-run.

About

License:MIT License


Languages

Language:Ruby 100.0%