Skip to content

Commit

Permalink
👷 Make windows scop release
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinemartin committed Jan 31, 2023
1 parent ec6de5b commit 09f2e5e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
args: --snapshot --skip-publish --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCOOP_BUCKET_GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# - name: Build APK repo
# uses: ./.github/actions/make-apkindex
# with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCOOP_BUCKET_GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
- name: Trigger APK repo build
uses: peter-evans/repository-dispatch@v2
with:
Expand Down
16 changes: 16 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ builds:
archives:
- format: binary
name_template: '{{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "SHA256SUMS"
snapshot:
Expand Down Expand Up @@ -73,3 +76,16 @@ dockers:
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
scoop:
bucket:
owner: kaweezle
name: scoop-bucket
branch: main
token: "{{ .Env.SCOOP_BUCKET_GITHUB_TOKEN }}"
commit_author:
name: Antoine Martin
email: antoine@openance.com
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: https://github.com/kaweezle/krmfnsops
description: "Kustomize SOPS KRM function"
license: Apache-2.0
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func main() {

cmd := command.Build(processor, command.StandaloneDisabled, false)
command.AddGenerateDockerfile(cmd)
cmd.Version = "v0.1.6" // <---VERSION--->
cmd.Version = "v0.1.7" // <---VERSION--->

if err := cmd.Execute(); err != nil {
os.Exit(1)
Expand Down

0 comments on commit 09f2e5e

Please sign in to comment.