Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix goreleaser #135

Merged
merged 3 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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