Skip to content

Commit 3af8152

Browse files
committed
chore: fix docker github token
1 parent 6388afb commit 3af8152

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

7273
ENV GCLOUD_PATH=/opt/google-cloud-sdk

0 commit comments

Comments
 (0)