Skip to content

Commit

Permalink
Fix goreleaser (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
agners authored Mar 16, 2023
1 parent 957be69 commit b8acc8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
build:
name: Build OS-Agent
runs-on: ubuntu-latest
container: buildpack-deps:buster
steps:
- name: Checkout the repository
uses: actions/checkout@v3.4.0
Expand All @@ -29,12 +28,12 @@ jobs:
uses: goreleaser/goreleaser-action@v4.2.0
if: github.event_name == 'pull_request'
with:
args: build --snapshot --rm-dist
args: build --snapshot --clean

- name: Run GoReleaser release
uses: goreleaser/goreleaser-action@v4.2.0
if: github.event_name == 'release'
with:
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 7 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ nfpms:
- deb
dependencies:
- udisks2
replacements:
386: i386
amd64: x86_64
arm64: aarch64
file_name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
contents:
- src: contrib/haos-agent.service
dst: /usr/lib/systemd/system/haos-agent.service
Expand Down

0 comments on commit b8acc8a

Please # to comment.