1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/.github/workflows/release.yml
dependabot[bot] a022f43014
chore(deps): bump anchore/sbom-action from 0.15.9 to 0.15.10 (#4727)
Bumps [anchore/sbom-action](https://github.com/anchore/sbom-action) from
0.15.9 to 0.15.10.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/anchore/sbom-action/releases">anchore/sbom-action's
releases</a>.</em></p>
<blockquote>
<h2>v0.15.10</h2>
<h2>Changes in v0.15.10</h2>
<ul>
<li>Update Syft to v1.1.0 (<a
href="https://redirect.github.com/anchore/sbom-action/issues/454">#454</a>)</li>
<li>Bump Node to v20 on download-syft/publish-sbom actions (<a
href="https://redirect.github.com/anchore/sbom-action/issues/448">#448</a>)
[<a
href="https://github.com/ViacheslavKudinov">ViacheslavKudinov</a>]</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="ab5d7b5f48"><code>ab5d7b5</code></a>
chore(deps): update Syft to v1.1.0 (<a
href="https://redirect.github.com/anchore/sbom-action/issues/454">#454</a>)</li>
<li><a
href="6e7f9d716a"><code>6e7f9d7</code></a>
chore(deps): bump release-drafter/release-drafter from 5.25.0 to 6.0.0
(<a
href="https://redirect.github.com/anchore/sbom-action/issues/450">#450</a>)</li>
<li><a
href="2d906a3175"><code>2d906a3</code></a>
chore(deps): bump peter-evans/create-or-update-comment (<a
href="https://redirect.github.com/anchore/sbom-action/issues/452">#452</a>)</li>
<li><a
href="691c76237a"><code>691c762</code></a>
chore(deps): bump peter-evans/create-pull-request from 5.0.2 to 6.0.2
(<a
href="https://redirect.github.com/anchore/sbom-action/issues/453">#453</a>)</li>
<li><a
href="f0dafeffd3"><code>f0dafef</code></a>
chore(deps): bump actions/checkout from 4.1.1 to 4.1.2 (<a
href="https://redirect.github.com/anchore/sbom-action/issues/451">#451</a>)</li>
<li><a
href="c6d7b2a66c"><code>c6d7b2a</code></a>
chore: add dependabot configuration for actions (<a
href="https://redirect.github.com/anchore/sbom-action/issues/449">#449</a>)</li>
<li><a
href="31e2bb2432"><code>31e2bb2</code></a>
chore(deps): update <code>@types/node</code> to Node 20 (<a
href="https://redirect.github.com/anchore/sbom-action/issues/443">#443</a>)</li>
<li><a
href="670514f26a"><code>670514f</code></a>
chore: Bump Node to v20 on download-syft/publish-sbom actions (<a
href="https://redirect.github.com/anchore/sbom-action/issues/448">#448</a>)</li>
<li><a
href="a5afbb185c"><code>a5afbb1</code></a>
chore(deps): update Syft to v1.0.1 (<a
href="https://redirect.github.com/anchore/sbom-action/issues/444">#444</a>)</li>
<li>See full diff in <a
href="https://github.com/anchore/sbom-action/compare/v0.15.9...v0.15.10">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=anchore/sbom-action&package-manager=github_actions&previous-version=0.15.9&new-version=0.15.10)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 10:33:47 -03:00

139 lines
5.0 KiB
YAML

name: release
on:
push:
branches:
- "main"
tags:
- "v*"
permissions:
contents: write
id-token: write
packages: write
jobs:
trigger-generate:
runs-on: ubuntu-latest
needs: [goreleaser]
steps:
- uses: benc-uk/workflow-dispatch@v1.2.3
if: startsWith(github.ref, 'refs/tags/v')
with:
repo: goreleaser/goreleaser
ref: main
token: ${{ secrets.GH_PAT }}
workflow: generate.yml
notify-goreleaser-cross:
runs-on: ubuntu-latest
needs: [trigger-generate]
steps:
- name: get version
if: startsWith(github.ref, 'refs/tags/v')
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: notify goreleaser-cross with new release
if: startsWith(github.ref, 'refs/tags/v')
uses: benc-uk/workflow-dispatch@v1.2.3
with:
token: ${{ secrets.GH_PAT }}
repo: goreleaser/goreleaser-cross
workflow: goreleaser-bump
inputs: '{ "tag" : "${{ env.RELEASE_TAG }}" }'
goreleaser-check-pkgs:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
needs: [goreleaser]
if: github.ref == 'refs/heads/main'
strategy:
matrix:
format: [deb, rpm, apk]
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3
with:
fetch-depth: 0
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
./dist/*.deb
./dist/*.rpm
./dist/*.apk
key: ${{ github.ref }}
- run: task goreleaser:test:${{ matrix.format }}
goreleaser:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3
with:
fetch-depth: 0
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
- uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3
- name: setup-snapcraft
# FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
mkdir -p $HOME/.cache/snapcraft/download
mkdir -p $HOME/.cache/snapcraft/stage-packages
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4
with:
go-version: stable
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
./dist/*.deb
./dist/*.rpm
./dist/*.apk
key: ${{ github.ref }}
- uses: sigstore/cosign-installer@v3.4.0
- uses: anchore/sbom-action/download-syft@v0.15.10
- uses: crazy-max/ghaction-upx@v3
with:
install-only: true
- uses: cachix/install-nix-action@v26
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: dockerhub-login
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: ghcr-login
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: snapcraft-login
if: startsWith(github.ref, 'refs/tags/v')
run: snapcraft login --with <(echo "${{ secrets.SNAPCRAFT_LOGIN }}")
- name: goreleaser-release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
MASTODON_CLIENT_ID: ${{ secrets.MASTODON_CLIENT_ID }}
MASTODON_CLIENT_SECRET: ${{ secrets.MASTODON_CLIENT_SECRET }}
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
COSIGN_PWD: ${{ secrets.COSIGN_PWD }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
run: task goreleaser