Skip to content

Commit 33f60c2

Browse files
MPR Add sops to ci runner
2 parents 4b20e5d + 70fb53a commit 33f60c2

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

linux/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ RUN --mount=target=/build/script.sh,source=/build/tools/04-gcloud.sh /build/scri
3030
FROM tools-base AS tools-asdf
3131
RUN --mount=target=/build/script.sh,source=/build/tools/06-asdf.sh /build/script.sh
3232

33+
FROM tools-base AS tools-sops
34+
RUN --mount=target=/build/script.sh,source=/build/tools/07-sops.sh /build/script.sh
35+
3336
FROM tools-base AS tools-runner
3437
RUN --mount=target=/build/script.sh,source=/build/tools/99-runner.sh /build/script.sh
3538

@@ -44,6 +47,8 @@ COPY --from=tools-gcloud --link /var/runner /var/runner
4447
COPY --from=tools-gcloud --link /etc/profile.d /etc/profile.d
4548
COPY --from=tools-asdf --link /var/runner /var/runner
4649
COPY --from=tools-asdf --link /etc/profile.d /etc/profile.d
50+
COPY --from=tools-sops --link /var/runner /var/runner
51+
COPY --from=tools-sops --link /etc/profile.d /etc/profile.d
4752
COPY --from=tools-runner --link /var/runner /var/runner
4853
COPY --from=tools-runner --link /etc/profile.d /etc/profile.d
4954
COPY --from=tools-runner --link /runner /runner

linux/build/tools/07-sops.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/bash
2+
set -euxo pipefail
3+
mkdir -p /var/runner/tools/sops
4+
5+
curl -fsSL \
6+
"https://github.com/getsops/sops/releases/download/v3.12.2/sops-v3.12.2.linux.amd64" \
7+
-o /var/runner/tools/sops/sops
8+
chmod +x /var/runner/tools/sops/sops
9+
10+
cat <<EOF | sudo tee /etc/profile.d/20-sops.sh
11+
export PATH="\$PATH:/var/runner/tools/sops"
12+
EOF

macOS/volumes/setup/scripts/04-homebrew-pkgs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ brew install \
1212
"gnu-tar" \
1313
"jq" \
1414
"ruby" \
15+
"sops" \
1516
"wget" \
1617
"zstd"
1718

0 commit comments

Comments
 (0)