Skip to content

Commit

Permalink
feat(deps): upgrade rootly-go and all other deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kwent committed Nov 2, 2023
1 parent 4daa908 commit f8b8f92
Show file tree
Hide file tree
Showing 15 changed files with 380 additions and 709 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
env:
GO111MODULE: off
with:
go-version: 1.17
go-version: 1.21
id: go
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- run: make build
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- run: make docker-build
27 changes: 19 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,38 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v4
env:
GO111MODULE: off
with:
go-version: 1.21
id: go
- name: Run Golangci Linter
uses: golangci/[email protected]
uses: golangci/golangci-lint-action@v3
with:
version: latest
gomod:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
env:
GO111MODULE: off
with:
go-version: 1.17
go-version: 1.21
id: go
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- run: |
go mod tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Linting docker/Dockerfile
uses: brpaz/hadolint-action@master
with:
Expand All @@ -38,9 +49,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Run Check
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: check
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
env:
GO111MODULE: off
with:
go-version: 1.17
go-version: 1.21
- name: Run goreleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_PAT }}
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Docker Login
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
env:
GO111MODULE: off
with:
go-version: 1.17
go-version: 1.21
- run: make test
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ builds:
- 7

brews:
- tap:
- repository:
owner: rootlyhq
name: homebrew-tap
folder: Formula
homepage: 'https://rootly.io'
description: 'Command line tool for rootly.io'
homepage: 'https://rootly.com'
description: 'Command line tool for rootly.com'
install: bin.install "rootly"
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.17 AS builder
FROM golang:1.21 AS builder

# Meta data
LABEL maintainer="support@rootly.io"
LABEL maintainer="support@rootly.com"
LABEL description="Command-line tool for rootly"

# Copying over all the files
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

Command-line interface for rootly.io
Command-line interface for rootly.com
Copyright (C) 2021 Rootly Inc.

This program is free software: you can redistribute it and/or modify
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

## 👋 Getting Started

The rootly command-line tool allows you to interact with rootly in your terminal, CI environment, or anything that can run a simple program. At the moment the main purpose of the cli is to send [pulses](https://rootly.io/docs/pulses) right from the command line. This is great for sending a pulse at the end of a deploy script for example. You can also send pulses based on the exit status of a given command to run.
The rootly command-line tool allows you to interact with rootly in your terminal, CI environment, or anything that can run a simple program. At the moment the main purpose of the cli is to send [pulses](https://rootly.com/docs/pulses) right from the command line. This is great for sending a pulse at the end of a deploy script for example. You can also send pulses based on the exit status of a given command to run.

### 🚀 Install

Expand Down Expand Up @@ -60,12 +60,12 @@ go install github.com/rootlyhq/cli@latest

### ℹ️ `rootly pulse`

`rootly pulse` allows you to send a [pulse](https://rootly.io/docs/pulses) right from the command-line. The summary for the pulse, which is required, goes at the end of the command as a normal argument.
`rootly pulse` allows you to send a [pulse](https://rootly.com/docs/pulses) right from the command-line. The summary for the pulse, which is required, goes at the end of the command as a normal argument.

| **Flag Name** | **Description** | **Examples** | **Required** | **Environment Variable** |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------------ | ------------------------ |
| api-key | A rootly api key | `--api-key "ABC123"` | Yes | ROOTLY_API_KEY |
| api-host | Host URL for the rootly api. Default is https://api.rootly.io | `--api-host "https://rootly.hello.com"` | No | ROOTLY_API_HOST |
| api-host | Host URL for the rootly api. Default is https://api.rootly.com | `--api-host "https://rootly.hello.com"` | No | ROOTLY_API_HOST |
| labels | Key value pair labels (separated with commas with no spaces around `=`) | `--labels "version=2, attempt=1"` | No | ROOTLY_LABELS |
| services | Services associated with the pulse (separated with commas) | `--services "elasticsearch-prod"` | No | ROOTLY_SERVICES |
| environments | Environments associated with the pulse (separated with commas) | `--environments "staging, production"` | No | ROOTLY_ENVIRONMENTS |
Expand Down Expand Up @@ -103,12 +103,12 @@ Here are some examples:

### 🏃 `rootly pulse-run`

`rootly pulse-run` allows you to wrap a terminal command and send a [pulse](https://rootly.io/docs/pulses) with a label of the exit code. The summary for the pulse is a flag and if no value is provided it will use the command. The command goes at the end of the command as a normal argument.
`rootly pulse-run` allows you to wrap a terminal command and send a [pulse](https://rootly.com/docs/pulses) with a label of the exit code. The summary for the pulse is a flag and if no value is provided it will use the command. The command goes at the end of the command as a normal argument.

| **Flag Name** | **Description** | **Examples** | **Required** | **Environment Variable** |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------------ | ------------------------ |
| api-key | A rootly api key | `--api-key "ABC123"` | Yes | ROOTLY_API_KEY |
| api-host | Host URL for the rootly api. Default is https://api.rootly.io | `--api-host "https://rootly.hello.com"` | No | ROOTLY_API_HOST |
| api-host | Host URL for the rootly api. Default is https://api.rootly.com | `--api-host "https://rootly.hello.com"` | No | ROOTLY_API_HOST |
| summary | Summary for the pulse. Default is just the command | `--summary "Deployed Website"` | No | ROOTLY_SUMMARY |
| labels | Key value pair labels (separated with commas with no spaces around `=`) | `--labels "Version=2, Attempt=1"` | No | ROOTLY_LABELS |
| services | Services associated with the pulse (separated with commas) | `--services "elasticsearch-prod"` | No | ROOTLY_SERVICES |
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
pulse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: make deploy
- name: rootly-pulse
uses: rootlyhq/pulse-action@main
Expand All @@ -176,5 +176,5 @@ jobs:
services: elasticsearch-prod # Not required
labels: platform=ubuntu,version=2 # Not required
source: k8s # Not required
refs: sha=cd62148cbc5eb42168fe99fdb50a364e12b206ac, image=registry.rootly.io/rootly/my-service:cd6214 # Not required
refs: sha=cd62148cbc5eb42168fe99fdb50a364e12b206ac, image=registry.rootly.com/rootly/my-service:cd6214 # Not required
```
104 changes: 81 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,41 +1,99 @@
module github.com/rootlyhq/cli

go 1.17
go 1.21

toolchain go1.21.3

require (
github.com/deepmap/oapi-codegen v1.9.0
github.com/fatih/color v1.13.0 // indirect
github.com/getkin/kin-openapi v0.83.0 // indirect
github.com/deepmap/oapi-codegen v1.16.2
github.com/fatih/color v1.15.0 // indirect
github.com/getkin/kin-openapi v0.120.0 // indirect
github.com/gleich/lumber v1.1.4
github.com/gleich/release v0.0.0-20210604035540-68b9816a6144
github.com/labstack/echo/v4 v4.6.1 // indirect
github.com/rootlyhq/rootly-go v0.0.0-20211202023651-b535d2717364
github.com/spf13/cobra v1.2.1
github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
golang.org/x/net v0.0.0-20211201190559-0a0e4e1bb54c // indirect
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881 // indirect
github.com/gleich/release v0.0.0-20230101033802-94e8f26aab77
github.com/labstack/echo/v4 v4.11.2 // indirect
github.com/rootlyhq/rootly-go v0.0.0-20231102142214-b4bf4a25db2a
github.com/spf13/cobra v1.7.0
github.com/stretchr/testify v1.8.4
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.13.0 // indirect
)

require golang.org/x/text v0.3.7
require golang.org/x/text v0.13.0

require (
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53 // indirect
github.com/CloudyKit/jet/v6 v6.2.0 // indirect
github.com/Joker/jade v1.1.3 // indirect
github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06 // indirect
github.com/andybalholm/brotli v1.0.6 // indirect
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/bytedance/sonic v1.10.2 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/swag v0.19.15 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/flosch/pongo2/v4 v4.0.2 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/gin-gonic/gin v1.9.1 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
github.com/go-openapi/swag v0.22.4 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.15.5 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/gomarkdown/markdown v0.0.0-20230922112808-5421fefb8386 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/invopop/yaml v0.2.0 // indirect
github.com/iris-contrib/schema v0.0.6 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/labstack/gommon v0.3.1 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kataras/blocks v0.0.8 // indirect
github.com/kataras/golog v0.1.11 // indirect
github.com/kataras/iris/v12 v12.2.7 // indirect
github.com/kataras/pio v0.0.13 // indirect
github.com/kataras/sitemap v0.0.6 // indirect
github.com/kataras/tunnel v0.0.4 // indirect
github.com/klauspost/compress v1.17.2 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/labstack/gommon v0.4.0 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mailgun/raymond/v2 v2.0.48 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/microcosm-cc/bluemonday v1.0.26 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/perimeterx/marshmallow v1.1.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/schollz/closestmatch v2.1.0+incompatible // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tdewolff/minify/v2 v2.20.5 // indirect
github.com/tdewolff/parse/v2 v2.7.3 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.1 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/wayneashleyberry/truecolor v1.0.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
github.com/yosssi/ace v0.0.5 // indirect
golang.org/x/arch v0.5.0 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit f8b8f92

Please sign in to comment.