Skip to content

Commit

Permalink
switch to goreleaser-pro
Browse files Browse the repository at this point in the history
  • Loading branch information
ecordell committed Jan 27, 2023
1 parent 35442a9 commit 8416631
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 19 deletions.
46 changes: 28 additions & 18 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,33 @@ on: # yamllint disable-line rule:truthy
push:
branches:
- "main"
paths:
- ".github/workflows/build-test.yaml"
- "Dockerfile"
- "go.mod"
- "go.sum"
- "cmd/**"
- "pkg/**"
- "e2e/**"
- "internal/**"
pull_request:
branches:
- "*"
paths:
- ".github/workflows/build-test.yaml"
- "Dockerfile"
- "go.mod"
- "go.sum"
- "cmd/**"
- "pkg/**"
- "e2e/**"
- "internal/**"
jobs:
paths-filter:
runs-on: "ubuntu-latest"
outputs:
codechange: "${{ steps.filter.outputs.codechange }}"
steps:
- uses: "actions/checkout@v2"
- uses: "dorny/paths-filter@v2"
id: "filter"
with:
filters: |
codechange:
- ".github/workflows/build-test.yaml"
- "Dockerfile"
- "go.mod"
- "go.sum"
- "cmd/**"
- "pkg/**"
- "e2e/**"
- "internal/**"
build:
needs: "paths-filter"
if: |
needs.paths-filter.outputs.codechange == 'true'
name: "Build Binary"
runs-on: "ubuntu-latest"
steps:
Expand All @@ -37,6 +41,9 @@ jobs:
- uses: "authzed/actions/go-build@main"

image-build:
needs: "paths-filter"
if: |
needs.paths-filter.outputs.codechange == 'true'
name: "Build Container Image"
runs-on: "ubuntu-latest"
steps:
Expand All @@ -52,6 +59,9 @@ jobs:
qemu: false

test:
needs: "paths-filter"
if: |
needs.paths-filter.outputs.codechange == 'true'
name: "Test"
runs-on: "ubuntu-latest"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
kustomize_output_file: "bundle.yaml"
- uses: "goreleaser/goreleaser-action@v2"
with:
distribution: "goreleaser"
distribution: "goreleaser-pro"
version: "latest"
args: "release --rm-dist"
env:
Expand Down

0 comments on commit 8416631

Please sign in to comment.