diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1ba1f3b..74fa49f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,15 +1,14 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - version: 2 updates: - - package-ecosystem: "github-actions" - directory: "/" + - package-ecosystem: github-actions + directory: '/' schedule: - interval: "weekly" - - package-ecosystem: "gomod" - directory: "/" + interval: weekly + - package-ecosystem: gomod + directory: '/' schedule: - interval: "weekly" + interval: weekly + - package-ecosystem: docker + directory: '/build' + schedule: + interval: weekly diff --git a/.github/workflows/test.yml b/.github/workflows/pr.yml similarity index 70% rename from .github/workflows/test.yml rename to .github/workflows/pr.yml index 999e8b1..f2c3840 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/pr.yml @@ -1,18 +1,12 @@ -name: checks +name: PR check on: push: branches: [ main ] pull_request: - branches: [ main ] merge_group: - branches: [ main ] workflow_dispatch: -env: - GOFLAGS: -mod=readonly - GOPROXY: https://proxy.golang.org - jobs: test: runs-on: ubuntu-latest @@ -21,10 +15,11 @@ jobs: - uses: actions/setup-go@v5 with: - check-latest: true go-version-file: 'go.mod' - uses: golangci/golangci-lint-action@v4 + with: + version: latest - name: Run tests run: go test -v ./... diff --git a/.github/workflows/release.yml b/.github/workflows/tag.yml similarity index 64% rename from .github/workflows/release.yml rename to .github/workflows/tag.yml index 297e3e0..1257df2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/tag.yml @@ -6,32 +6,35 @@ on: - v*.*.* workflow_dispatch: -env: - GOFLAGS: -mod=readonly - GOPROXY: https://proxy.golang.org - jobs: release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: actions/setup-go@v5 with: - check-latest: true go-version-file: go.mod + - name: Unshallow + run: git fetch --prune --unshallow + + - uses: docker/setup-qemu-action@v3 + + - uses: docker/setup-buildx-action@v3 + - id: app_token uses: tibdex/github-app-token@v2 with: app_id: ${{ secrets.TOKEN_APP_ID }} private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} + - name: Login do docker.io + run: docker login -u {{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} + - uses: goreleaser/goreleaser-action@v5 with: version: latest - args: release --clean + args: release --clean --timeout=90m env: GITHUB_TOKEN: ${{ steps.app_token.outputs.token }} diff --git a/go.mod b/go.mod index 2cd29e4..965abbf 100644 --- a/go.mod +++ b/go.mod @@ -8,17 +8,16 @@ require ( github.com/json-iterator/go v1.1.12 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.19.0 + github.com/spf13/cobra v1.8.0 + github.com/spf13/viper v1.18.2 github.com/stretchr/testify v1.9.0 go.uber.org/multierr v1.11.0 go.uber.org/zap v1.27.0 -) - -require ( - github.com/spf13/cobra v1.8.0 - github.com/spf13/viper v1.18.2 golang.org/x/sync v0.6.0 ) +require golang.org/x/net v0.21.0 + require ( cloud.google.com/go v0.111.0 // indirect cloud.google.com/go/compute v1.23.3 // indirect @@ -113,7 +112,6 @@ require ( go.opentelemetry.io/proto/otlp v1.1.0 // indirect golang.org/x/crypto v0.21.0 // indirect golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect - golang.org/x/net v0.21.0 // indirect golang.org/x/oauth2 v0.16.0 // indirect golang.org/x/sys v0.18.0 // indirect golang.org/x/text v0.14.0 // indirect