Skip to content

Commit

Permalink
ci: goreleaser config align with v2.2 (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis authored Aug 21, 2024
1 parent d5c708d commit 4053c2d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr-goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: pr-gorelaser

permissions: {}

on:
pull_request:
branches:
- 'master'

jobs:
validate-config:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Validate .goreleaser.yaml
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
version: latest
args: check
env:
RUNNER_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.DOODLE_OSS_BOT}}
5 changes: 3 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
project_name: flux-build

builds:
Expand Down Expand Up @@ -84,13 +85,13 @@ docker_manifests:
brews:
- ids:
- flux-build
tap:
repository:
owner: doodlescheduling
name: flux-build
token: "{{ .Env.GITHUB_TOKEN }}"
description: Build kustomize overlays with flux2 HelmRelease support
homepage: https://github.com/DoodleScheduling/flux-build
folder: Formula
directory: Formula
test: |
system "#{bin}/flux-build -h"
Expand Down

0 comments on commit 4053c2d

Please sign in to comment.