File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,10 +63,11 @@ RUN update-locale LANG=en_US.UTF-8
6363
6464
6565# kubectl, jq, yq, sops
66- RUN --mount=type=secret,id=GITHUB_TOKEN \
67- export GITHUB_TOKEN=$(cat /run/secrets/GITHUB_TOKEN 2>/dev/null || true) && \
68- curl -sLS https://github.com/flanksource/deps/releases/latest/download/deps_linux_$(dpkg --print-architecture) -o /usr/bin/deps && \
69- chmod +x /usr/bin/deps && \
66+ RUN --mount=type=bind,target=. \
67+ --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
68+ curl -sL https://github.com/flanksource/deps/releases/latest/download/deps-linux-${TARGETARCH}.tar.gz -o deps-linux-${TARGETARCH}.tar.gz && \
69+ tar -xzf deps-linux-${TARGETARCH}.tar.gz -C /usr/bin && \
70+ rm deps-linux-${TARGETARCH}.tar.gz && \
7071 deps install kubectl jq yq sops --bin-dir /usr/bin
7172
7273ENV GCLOUD_PATH=/opt/google-cloud-sdk
You can’t perform that action at this time.
0 commit comments