Skip to content

Commit

Permalink
release fixes (#350)
Browse files Browse the repository at this point in the history
* fix docker build

* add arguments verify

---------

Co-authored-by: Pedro Tashima <[email protected]>
  • Loading branch information
tashima42 and tashima42 authored Jan 29, 2024
1 parent 4be7497 commit 5a630f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ RUN zypper update -y && \
COPY --from=builder /ecm-distro-tools/cmd/backport/bin/backport-linux-amd64 /usr/local/bin/backport
COPY --from=builder /ecm-distro-tools/cmd/gen_release_notes/bin/gen_release_notes-linux-amd64 /usr/local/bin/gen_release_notes
COPY --from=builder /ecm-distro-tools/cmd/gen_release_report/bin/gen_release_report-linux-amd64 /usr/local/bin/gen_release_report
COPY --from=builder /ecm-distro-tools/cmd/k3s_release/bin/k3s_release-linux-amd64 /usr/local/bin/k3s_release
COPY --from=builder /ecm-distro-tools/cmd/release/bin/release-linux-amd64 /usr/local/bin/release
COPY --from=builder /ecm-distro-tools/cmd/rancher_release/bin/rancher_release-linux-amd64 /usr/local/bin/rancher_release
COPY --from=builder /ecm-distro-tools/cmd/rke2_release/bin/rke2_release-linux-amd64 /usr/local/bin/rke2_release
COPY --from=builder /ecm-distro-tools/cmd/semv/bin/semv-linux-amd64 /usr/local/bin/semv
Expand Down
8 changes: 5 additions & 3 deletions cmd/release/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ func init() {
os.Exit(1)
}

if os.Args[1] == "config" && os.Args[2] == "gen" {
fmt.Println("running release config gen, skipping config load")
return
if len(os.Args) >= 2 {
if os.Args[1] == "config" && os.Args[2] == "gen" {
fmt.Println("running release config gen, skipping config load")
return
}
}
conf, err := config.Load(configPath)
if err != nil {
Expand Down

0 comments on commit 5a630f1

Please sign in to comment.