mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-09-03 00:47:17 +00:00
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 6 to 7. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: troubleshoot_release
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: azure/docker-login@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USER }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v7
|
|
with:
|
|
version: "v2.12.3"
|
|
args: release --clean --config deploy/.goreleaser.yaml
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}
|
|
|
|
- name: Update new preflight version in krew-index
|
|
if: ${{ !contains(github.ref_name, '-') }}
|
|
uses: rajatjindal/krew-release-bot@v0.0.51
|
|
with:
|
|
krew_template_file: deploy/krew/preflight.yaml
|
|
|
|
- name: Update new support-bundle version in krew-index
|
|
if: ${{ !contains(github.ref_name, '-') }}
|
|
uses: rajatjindal/krew-release-bot@v0.0.51
|
|
with:
|
|
krew_template_file: deploy/krew/support-bundle.yaml
|
|
|
|
notify:
|
|
if: ${{ !contains(github.ref_name, '-') }}
|
|
uses: replicatedhq/reusable-workflows/.github/workflows/notify-release.yml@0432fb838fc83852b78be97a150b35991a85d56f
|
|
with:
|
|
tag: ${{ github.ref_name }}
|
|
secrets:
|
|
slack_webhook: ${{ secrets.RELEASE_SLACK_WEBHOOK }}
|