orb-update

command module
v0.0.0-...-fdf59ed Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 1 Imported by: 0

README

orb-update

GoDoc CircleCI Maintainability Test Coverage Go Report Card GolangCI

Update CircleCI Orbs versions

Usage

Create CircleCI config yaml

orbs:
  slack: circleci/slack@1.0.0
  hello-build: circleci/hello-build@0.0.13

Execute command

$ orb-update

Then orb's versions are updated

orbs:
  slack: circleci/slack@3.4.1
  hello-build: circleci/hello-build@0.0.14
Pull Request Creation Option

orb-update can update orb and create pull request.

Here is minimum sample.

version: 2.1

orbs:
  orb-update: sawadashota/orb-update@volatile

workflows:
  orb-update:
    jobs:
      - orb-update/orb-update

And following environment variables are required.

Installation

$ go get -u github.com/sawadashota/orb-update

or

$ brew tap sawadashota/homebrew-cheers
$ brew install orb-update

Using CircleCI Orb

It's easy to check and update orb version every night. Here is an example.

version: 2.1

orbs:
  orb-update: sawadashota/orb-update@volatile

workflows:
  orb-update:
    jobs:
      - orb-update/orb-update:
          repository: owner/repository-name
    triggers:
      - schedule:
          cron: "0 19 * * *"
          filters:
            branches:
              only:
                - master

https://circleci.com/orbs/registry/orb/sawadashota/orb-update

Configuration

Define configuration .orb-update.yml or CLI argument --config.

# target config file path
# default is `.circleci/config.yml`
target_files:
  - .circleci/config.yml

repository:
  # name of this repository
  name: sawadashota/orb-update

git:
  # author of commit
  # require when Pull Request Creation
  # if empty, fetch from GitHub
  author:
    name: sawadashota
    email: example@example.com

github:
  # Pull Request creation option
  # default is false
  pull_request: true

  # these should be configured by environment variable because of credentials
  #
  # `GITHUB_USERNAME`
  #username: sawadashota
  # `GITHUB_TOKEN`
  #token: github_token

# base branch
# default is `master`
base_branch: master

filesystem:
  # filesystem strategy supports `os` and `memory`
  # default is `os` for easy to use in local
  # but in CI, `memory` is recommended
  strategy: memory

ignore:
  - circleci/orb-tools

Using Docker Image

$ docker run --rm -v $(pwd):/repo sawadashota/orb-update orb-update

https://hub.docker.com/r/sawadashota/orb-update

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
git
orb

Jump to

Keyboard shortcuts

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