build: install tar
This commit is contained in:
parent
fdd394bc31
commit
af68aa0e9e
|
|
@ -60,8 +60,7 @@ jobs:
|
|||
kubectl wait kustomizations/frontend --for=condition=ready --timeout=4m
|
||||
kubectl wait kustomizations/generate --for=condition=ready --timeout=4m
|
||||
kubectl -n kustomize-system logs deploy/kustomize-controller
|
||||
- name: Debug failure
|
||||
if: failure()
|
||||
- name: Debug
|
||||
run: |
|
||||
kubectl get gitrepositories -oyaml
|
||||
kubectl get kustomizations -oyaml
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o kustomiz
|
|||
|
||||
FROM alpine:3.11
|
||||
|
||||
RUN apk add --no-cache openssh-client ca-certificates tini 'git>=2.12.0' socat curl bash
|
||||
RUN apk add --no-cache openssh-client ca-certificates tar tini 'git>=2.12.0' socat curl bash
|
||||
|
||||
COPY --from=builder /usr/local/bin/kustomize /usr/local/bin/
|
||||
COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ func (r *KustomizationReconciler) download(kustomization kustomizev1.Kustomizati
|
|||
ctx, cancel := context.WithTimeout(context.Background(), timeout)
|
||||
defer cancel()
|
||||
|
||||
cmd := fmt.Sprintf("cd %s && curl -sL %s | tar -xz --strip-components=1 -C .",
|
||||
cmd := fmt.Sprintf("cd %s && curl -sL %s -o artifact.tar.gz && tar -xzf artifact.tar.gz --strip-components=1 -C .",
|
||||
tmpDir, url)
|
||||
command := exec.CommandContext(ctx, "/bin/sh", "-c", cmd)
|
||||
output, err := command.CombinedOutput()
|
||||
|
|
|
|||
Loading…
Reference in New Issue