Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ RUN --mount=target=/build/script.sh,source=/build/tools/04-gcloud.sh /build/scri
FROM tools-base AS tools-asdf
RUN --mount=target=/build/script.sh,source=/build/tools/06-asdf.sh /build/script.sh

FROM tools-base AS tools-sops
RUN --mount=target=/build/script.sh,source=/build/tools/07-sops.sh /build/script.sh

FROM tools-base AS tools-runner
RUN --mount=target=/build/script.sh,source=/build/tools/99-runner.sh /build/script.sh

Expand All @@ -44,6 +47,8 @@ COPY --from=tools-gcloud --link /var/runner /var/runner
COPY --from=tools-gcloud --link /etc/profile.d /etc/profile.d
COPY --from=tools-asdf --link /var/runner /var/runner
COPY --from=tools-asdf --link /etc/profile.d /etc/profile.d
COPY --from=tools-sops --link /var/runner /var/runner
COPY --from=tools-sops --link /etc/profile.d /etc/profile.d
COPY --from=tools-runner --link /var/runner /var/runner
COPY --from=tools-runner --link /etc/profile.d /etc/profile.d
COPY --from=tools-runner --link /runner /runner
Expand Down
12 changes: 12 additions & 0 deletions linux/build/tools/07-sops.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/bash
set -euxo pipefail
mkdir -p /var/runner/tools/sops

curl -fsSL \
"https://github.com/getsops/sops/releases/download/v3.12.2/sops-v3.12.2.linux.amd64" \
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"https://github.com/getsops/sops/releases/download/v3.12.2/sops-v3.12.2.linux.$(dpkg --print-architecture)" for furture ARM linux support?

-o /var/runner/tools/sops/sops
chmod +x /var/runner/tools/sops/sops

cat <<EOF | sudo tee /etc/profile.d/20-sops.sh
export PATH="\$PATH:/var/runner/tools/sops"
EOF
1 change: 1 addition & 0 deletions macOS/volumes/setup/scripts/04-homebrew-pkgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ brew install \
"gnu-tar" \
"jq" \
"ruby" \
"sops" \
"wget" \
"zstd"

Expand Down
Loading