mirror of
https://github.com/rancher/k3k.git
synced 2026-08-18 20:07:06 +00:00
Fix deprecated options in GoReleaser config (#1063)
* Fix deprecated goreleaser options * Fix Docker COPY paths for goreleaser dockers_v2 platform layout * Moved ARG definitions, smaller comment * Update GoReleaser version to `v2.17.0` --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Enrico Candino <enrico.candino@suse.com>
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
FROM registry.suse.com/bci/bci-base:16.1
|
||||
|
||||
ARG BIN_K3K=bin/k3k
|
||||
ARG BIN_K3KCLI=bin/k3kcli
|
||||
ARG BIN_K3K=k3k
|
||||
ARG BIN_K3KCLI=k3kcli
|
||||
|
||||
COPY ${BIN_K3K} /usr/bin/
|
||||
COPY ${BIN_K3KCLI} /usr/bin/
|
||||
# BIN_DIR defaults to the buildx per-platform dir; override (e.g. BIN_DIR=bin) for flat layouts.
|
||||
ARG TARGETPLATFORM
|
||||
ARG BIN_DIR=${TARGETPLATFORM}
|
||||
|
||||
COPY ${BIN_DIR}/${BIN_K3K} /usr/bin/
|
||||
COPY ${BIN_DIR}/${BIN_K3KCLI} /usr/bin/
|
||||
|
||||
CMD ["k3k"]
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
# TODO: swicth this to BCI-micro or scratch. Left as base right now so that debug can be done a bit easier
|
||||
FROM registry.suse.com/bci/bci-base:16.1
|
||||
|
||||
ARG BIN_K3K_KUBELET=bin/k3k-kubelet
|
||||
ARG BIN_K3K_KUBELET=k3k-kubelet
|
||||
|
||||
COPY ${BIN_K3K_KUBELET} /usr/bin/
|
||||
# BIN_DIR defaults to the buildx per-platform dir; override (e.g. BIN_DIR=bin) for flat layouts.
|
||||
ARG TARGETPLATFORM
|
||||
ARG BIN_DIR=${TARGETPLATFORM}
|
||||
|
||||
COPY ${BIN_DIR}/${BIN_K3K_KUBELET} /usr/bin/
|
||||
|
||||
ENTRYPOINT ["/usr/bin/k3k-kubelet"]
|
||||
|
||||
Reference in New Issue
Block a user