Skip to content

Commit

Permalink
fix: skip building podman binary on release (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin authored Oct 18, 2023
1 parent 3314d6b commit 5d89ee7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/podman-aws-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Build snapshot
run: |-
make build-for-podman
goreleaser build --id konvoy-image-wrapper-for-podman --clean --skip-validate
goreleaser build --config=.goreleaser-podman-e2e.yml --clean --skip-validate
- name: Run E2E test for AWS centos 7.9 using podman
run: |-
Expand Down
25 changes: 25 additions & 0 deletions .goreleaser-podman-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
before:
hooks:
- go mod download
- go mod tidy

builds:
- main: ./cmd/konvoy-image-wrapper/main.go
id: konvoy-image-wrapper-for-podman
binary: konvoy-image
mod_timestamp: "{{ .CommitTimestamp }}"
env:
- CGO_ENABLED=0
flags:
- -trimpath
tags:
- EMBED_DOCKER_IMAGE
ldflags:
- -s -w
- -X {{ .ModulePath }}/pkg/version.version={{ .FullCommit }}
- -X {{ .ModulePath }}/pkg/version.builtBy=goreleaser
goos:
- linux
goarch:
- amd64
19 changes: 0 additions & 19 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,6 @@ builds:
- amd64
- arm64

- main: ./cmd/konvoy-image-wrapper/main.go
id: konvoy-image-wrapper-for-podman
binary: konvoy-image
mod_timestamp: "{{ .CommitTimestamp }}"
env:
- CGO_ENABLED=0
flags:
- -trimpath
tags:
- EMBED_DOCKER_IMAGE
ldflags:
- -s -w
- -X {{ .ModulePath }}/pkg/version.version={{ .FullCommit }}
- -X {{ .ModulePath }}/pkg/version.builtBy=goreleaser
goos:
- linux
goarch:
- amd64

- main: ./cmd/konvoy-image-wrapper/main.go
id: konvoy-image-wrapper
binary: konvoy-image
Expand Down

0 comments on commit 5d89ee7

Please sign in to comment.