Skip to content

Commit cc3a606

Browse files
committed
remove permissions scope and use project variable in the nfpms
1 parent aeeb605 commit cc3a606

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/cicd.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ jobs:
1515
build-release:
1616
runs-on: ubuntu-latest
1717
if: startsWith(github.ref, 'refs/tags/v')
18-
permissions:
19-
packages: write
2018
steps:
2119
- name: Checkout
2220
uses: actions/checkout@v4

goreleaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ changelog:
4747
nfpms:
4848
- id: greeter-nfpms
4949
file_name_template: '{{ .ProjectName }}_{{ replace .Version "v" "" }}_{{ .Os }}_{{ .Arch }}'
50-
package_name: ndk-greeter-go
50+
package_name: ndk-{{ .ProjectName }}-go
5151
maintainer: Roman Dodin <[email protected]>
5252
homepage: https://learn.srlinux.dev
5353
description: |
@@ -58,9 +58,9 @@ nfpms:
5858
- deb
5959
bindir: /usr/local/bin
6060
contents:
61-
- src: ./greeter
61+
- src: ./{{ .ProjectName }}
6262
dst: /usr/local/bin/
6363
- src: ./yang
64-
dst: /opt/greeter/yang
65-
- src: ./greeter.yml
64+
dst: /opt/{{ .ProjectName }}/yang
65+
- src: ./{{ .ProjectName }}.yml
6666
dst: /etc/opt/srlinux/appmgr/

0 commit comments

Comments
 (0)