Skip to content

Commit 638e6ca

Browse files
committed
ci: add fips check
1 parent 488eff3 commit 638e6ca

File tree

7 files changed

+110
-91
lines changed

7 files changed

+110
-91
lines changed

.tekton/client-server-pull-request.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ spec:
3333
value: "true"
3434
- name: build-source-image
3535
value: "true"
36+
- name: fips-check
37+
value: "true"
3638
pipelineRef:
3739
params:
3840
- name: url

.tekton/client-server-push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ spec:
3030
value: "true"
3131
- name: build-source-image
3232
value: "true"
33+
- name: fips-check
34+
value: "true"
3335
pipelineRef:
3436
params:
3537
- name: url

.tekton/cosign-pull-request.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,22 @@ spec:
4141
value: "true"
4242
- name: go_unit_test
4343
value: "true"
44+
- name: build-platforms
45+
value:
46+
- linux/x86_64
47+
- linux/arm64
48+
- linux/ppc64le
49+
- linux/s390x
50+
- name: fips-check
51+
value: "true"
4452
pipelineRef:
4553
params:
4654
- name: url
4755
value: https://github.com/securesign/pipelines.git
4856
- name: revision
4957
value: main
5058
- name: pathInRepo
51-
value: pipelines/docker-build-oci-ta.yaml
59+
value: pipelines/docker-build-multi-platform-oci-ta.yaml
5260
resolver: git
5361
taskRunTemplate:
5462
serviceAccountName: build-pipeline-cosign

.tekton/cosign-push.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,22 @@ spec:
3838
value: "true"
3939
- name: go_unit_test
4040
value: "true"
41+
- name: build-platforms
42+
value:
43+
- linux/x86_64
44+
- linux/arm64
45+
- linux/ppc64le
46+
- linux/s390x
47+
- name: fips-check
48+
value: "true"
4149
pipelineRef:
4250
params:
4351
- name: url
4452
value: https://github.com/securesign/pipelines.git
4553
- name: revision
4654
value: main
4755
- name: pathInRepo
48-
value: pipelines/docker-build-oci-ta.yaml
56+
value: pipelines/docker-build-multi-platform-oci-ta.yaml
4957
resolver: git
5058
taskRunTemplate:
5159
serviceAccountName: build-pipeline-cosign

Build.mak

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
GIT_VERSION ?= $(shell git describe --tags --always --dirty)
32
GIT_HASH ?= $(shell git rev-parse HEAD)
43
DATE_FMT = +%Y-%m-%dT%H:%M:%SZ
@@ -18,34 +17,19 @@ LDFLAGS=-buildid= -X sigs.k8s.io/release-utils/version.gitVersion=$(GIT_VERSION)
1817
-X sigs.k8s.io/release-utils/version.gitCommit=$(GIT_HASH) \
1918
-X sigs.k8s.io/release-utils/version.gitTreeState=$(GIT_TREESTATE) \
2019
-X sigs.k8s.io/release-utils/version.buildDate=$(BUILD_DATE)
20+
FIPS_MODULE ?= latest
2121

2222
.PHONY:
23-
cross-platform: cosign-darwin-arm64 cosign-darwin-amd64 cosign-linux-amd64 cosign-linux-arm64 cosign-linux-ppc64le cosign-linux-s390x cosign-windows-amd64 ## Build all distributable (cross-platform) binaries
23+
cross-platform: cosign-darwin-arm64 cosign-darwin-amd64 cosign-windows-amd64 ## Build all distributable (cross-platform) binaries
2424

2525
.PHONY: cosign-darwin-arm64
2626
cosign-darwin-arm64: ## Build for mac M1
27-
env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o cosign-darwin-arm64 -trimpath -ldflags "$(LDFLAGS) -w -s" ./cmd/cosign
27+
env CGO_ENABLED=0 GOFIPS140=$(FIPS_MODULE) GOOS=darwin GOARCH=arm64 go build -o cosign-darwin-arm64 -trimpath -ldflags "$(LDFLAGS) -w -s" ./cmd/cosign
2828

2929
.PHONY: cosign-darwin-amd64
3030
cosign-darwin-amd64: ## Build for Darwin (macOS)
31-
env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o cosign-darwin-amd64 -trimpath -ldflags "$(LDFLAGS) -w -s" ./cmd/cosign
32-
33-
.PHONY: cosign-linux-amd64
34-
cosign-linux-amd64: ## Build for Linux amd64
35-
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o cosign-linux-amd64 -trimpath -ldflags "$(LDFLAGS) -w -s" ./cmd/cosign
36-
37-
.PHONY: cosign-linux-arm64
38-
cosign-linux-arm64: ## Build for Linux arm64
39-
env CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o cosign-linux-arm64 -trimpath -ldflags "$(LDFLAGS) -w -s" ./cmd/cosign
40-
41-
.PHONY: cosign-linux-ppc64le
42-
cosign-linux-ppc64le: ## Build for Linux ppc64le
43-
env CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build -o cosign-linux-ppc64le -trimpath -ldflags "$(LDFLAGS) -w -s" ./cmd/cosign
44-
45-
.PHONY: cosign-linux-s390x
46-
cosign-linux-s390x: ## Build for Linux s390x
47-
env CGO_ENABLED=0 GOOS=linux GOARCH=s390x go build -o cosign-linux-s390x -trimpath -ldflags "$(LDFLAGS) -w -s" ./cmd/cosign
31+
env CGO_ENABLED=0 GOFIPS140=$(FIPS_MODULE) GOOS=darwin GOARCH=amd64 go build -o cosign-darwin-amd64 -trimpath -ldflags "$(LDFLAGS) -w -s" ./cmd/cosign
4832

4933
.PHONY: cosign-windows-amd64
5034
cosign-windows-amd64: ## Build for Windows
51-
env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o cosign-windows-amd64.exe -trimpath -ldflags "$(LDFLAGS) -w -s" ./cmd/cosign
35+
env CGO_ENABLED=0 GOFIPS140=$(FIPS_MODULE) GOOS=windows GOARCH=amd64 go build -o cosign-windows-amd64.exe -trimpath -ldflags "$(LDFLAGS) -w -s" ./cmd/cosign

Dockerfile.clients.rh

Lines changed: 69 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,38 @@
11
# Provides the Trusted Artifact Signer CLI binaries, cosign and gitsign
2-
FROM quay.io/securesign/cli-cosign@sha256:062bc901e95c73a5cc1d2aedc2807266efd3d282e99cd061fc42eed614688327 AS cosign
3-
FROM quay.io/securesign/gitsign@sha256:2a3d1791b018cbf8ec8b5e70c4f29f3aaec37755863cbb3dcba5bac18d9fe37a AS gitsign
2+
FROM --platform=linux/amd64 quay.io/securesign/cli-cosign@sha256:51f81ec2171770f7e3fefa66f12564699183c25dc6533473c253fd888735914b AS cosign-amd64
3+
FROM --platform=linux/arm64 quay.io/securesign/cli-cosign@sha256:5c72122d0ca0bbb48faa59603478cad6644e75f9d686dcb7e5912a9850b98bd8 AS cosign-arm64
4+
FROM --platform=linux/ppc64le quay.io/securesign/cli-cosign@sha256:147615278841315f532413787d8b5f874e868c29e27adaaa10573bf515041355 AS cosign-ppc64le
5+
FROM --platform=linux/s390x quay.io/securesign/cli-cosign@sha256:26ef2293d41953c42be8531fe89a0610741c9e74c086c61be7bc3c5e498ff7ff AS cosign-s390x
6+
7+
FROM --platform=linux/amd64 quay.io/securesign/gitsign@sha256:679dd74ac4c9f59454a0629467ae81388f361f43595cb0eb846378a79625e1b7 AS gitsign-amd64
8+
FROM --platform=linux/arm64 quay.io/securesign/gitsign@sha256:3c7c573302234db8b9ee3bff6c31fc6e7375c7eb68d9de157f150ddc5917f29d AS gitsign-arm64
9+
FROM --platform=linux/ppc64le quay.io/securesign/gitsign@sha256:176606574b02eaf91f0c3211c212742bc98d2205aa0c784a1f137d2dfe8cbb2f AS gitsign-ppc64le
10+
FROM --platform=linux/s390x quay.io/securesign/gitsign@sha256:65bc1c0a566cf1102c4bd9d178639464e30da018309e7ac7dbd75b05ac8c07d6 AS gitsign-s390x
411

512
# Provides the Trusted Artifact Signer CLI binary, fetch-tsa-certs
6-
FROM quay.io/securesign/fetch-tsa-certs@sha256:9ff0afde8cabeec216266dfa5329addefb76f6a6d45322ffda65af0485d19c55 as fetch_tsa_certs
13+
FROM --platform=linux/amd64 quay.io/securesign/fetch-tsa-certs@sha256:99909239140731ccfb801f5c603bfb16f215f876b3be1e207d42c2c88f866b82 as fetch_tsa_certs-amd64
14+
FROM --platform=linux/arm64 quay.io/securesign/fetch-tsa-certs@sha256:4de9de07bc3b275e67b15347dd87b6af232c6dc364cd2f6c310f43869467c928 as fetch_tsa_certs-arm64
15+
FROM --platform=linux/ppc64le quay.io/securesign/fetch-tsa-certs@sha256:9db3871a6153038143f364cdd64011a05c08469fa0ecec3be0935ebd2c247d34 as fetch_tsa_certs-ppc64le
16+
FROM --platform=linux/s390x quay.io/securesign/fetch-tsa-certs@sha256:a68150f77a28627051b22044f3e193a857655e985895cd84131c75381c5d8975 as fetch_tsa_certs-s390x
717

818
# Provides the Trusted Artifact Signer CLI binaries, rekor-cli and ec
9-
FROM quay.io/securesign/rekor-cli@sha256:1d8bc12939e4c06fd55e8a3356ba4f2a296c9a28d80b3ba0014e24c6df5639e0 as rekor
19+
FROM --platform=linux/amd64 quay.io/securesign/rekor-cli@sha256:4b6e33a51b0c8ecb1de1bba42b332af22007eb4151ebdd5b6ad52d641fb2296d as rekor-amd64
20+
FROM --platform=linux/arm64 quay.io/securesign/rekor-cli@sha256:a69778f67e24ef96bb3658f0980d7b6da2494ba83be90f8a2d7a3ec98219b8b3 as rekor-arm64
21+
FROM --platform=linux/ppc64le quay.io/securesign/rekor-cli@sha256:0c884e87a8751b4f155b50c1a219603b53c34c2c733ce3e2cd96810eed28626d as rekor-ppc64le
22+
FROM --platform=linux/s390x quay.io/securesign/rekor-cli@sha256:34ec3886df0ce7154008f111f9f1d9a3f4140bf7441ce76d5d105bf71dd4b39f as rekor-s390x
23+
1024
FROM registry.redhat.io/rhtas/ec-rhel9:0.7@sha256:30f7a2eeed605f23ba68bc41f29363acc5305ff4cf9302c37ee7ac7408cfa38d as ec
1125

1226
# Provides the Trusted Artifact Signer CLI binaries trillian-createtree and trillian-updatetree
13-
FROM quay.io/securesign/trillian-createtree@sha256:70044a6cfc4f86e38ecbc7a4ffbfd713ccbd70fe0c99cac936ebaf1cb471ef87 as trillian-createtree
14-
FROM quay.io/securesign/trillian-updatetree@sha256:6f6a98f6ae44f2fc51ba08594e195902ebe5cd9e5a59bff6c5ab7f75ec7bd98f as trillian-updatetree
27+
FROM --platform=linux/amd64 quay.io/securesign/trillian-createtree@sha256:e89eb40cc4b22ce79ca71c811d4e006c41a14cf11201bfee8938e43854f84b16 as trillian-createtree-amd64
28+
FROM --platform=linux/arm64 quay.io/securesign/trillian-createtree@sha256:5d877f3fe3dba9e12ca06f9cd24b09550c1455c7b90c8c7b77da3af94a54a0bc as trillian-createtree-arm64
29+
FROM --platform=linux/ppc64le quay.io/securesign/trillian-createtree@sha256:a97ed2c6b80ac1bc724d5ce325c629d4ed7a1bb596045f94baed25610ada4735 as trillian-createtree-ppc64le
30+
FROM --platform=linux/s390x quay.io/securesign/trillian-createtree@sha256:a3c5c82cd720f4412767d60a5cbf47b2fa71fecda5fba204ff67cd7577ecaeb8 as trillian-createtree-s390x
31+
32+
FROM --platform=linux/amd64 quay.io/securesign/trillian-updatetree@sha256:85341dbe66da18761372a70e994fc2a245d459bef5640ce4e11391da9f90c98a as trillian-updatetree-amd64
33+
FROM --platform=linux/arm64 quay.io/securesign/trillian-updatetree@sha256:b06846df6a6bbd63b46429473df97d1ea1339e05e41e868825a976b0ace20d8d as trillian-updatetree-arm64
34+
FROM --platform=linux/ppc64le quay.io/securesign/trillian-updatetree@sha256:96f7a34f8c6ba29f13c4ab8bd86207d2d849e04fa352db6dae0960f5189afa48 as trillian-updatetree-ppc64le
35+
FROM --platform=linux/s390x quay.io/securesign/trillian-updatetree@sha256:8160661734aa17a069e12f4ba592fe7157944de14058bd29fc78bfa36578ab03 as trillian-updatetree-s390x
1536

1637
FROM quay.io/securesign/cli-tuftool@sha256:aa970862708bf626d7bfb1e789f68776b8a236089e9f243d084578a74c74b343 as tuf-tool
1738

@@ -24,31 +45,31 @@ RUN mkdir -p /var/www/html/clients/darwin && \
2445
mkdir -p /var/www/html/clients/windows
2546

2647
# Copy the cosign binaries from the previous stages
27-
COPY --from=cosign /usr/local/bin/cosign-darwin-amd64.gz /var/www/html/clients/darwin/cosign-amd64.gz
28-
COPY --from=cosign /usr/local/bin/cosign-darwin-arm64.gz /var/www/html/clients/darwin/cosign-arm64.gz
29-
COPY --from=cosign /usr/local/bin/cosign-linux-amd64.gz /var/www/html/clients/linux/cosign-amd64.gz
30-
COPY --from=cosign /usr/local/bin/cosign-linux-arm64.gz /var/www/html/clients/linux/cosign-arm64.gz
31-
COPY --from=cosign /usr/local/bin/cosign-linux-ppc64le.gz /var/www/html/clients/linux/cosign-ppc64le.gz
32-
COPY --from=cosign /usr/local/bin/cosign-linux-s390x.gz /var/www/html/clients/linux/cosign-s390x.gz
33-
COPY --from=cosign /usr/local/bin/cosign-windows-amd64.exe.gz /var/www/html/clients/windows/cosign-amd64.gz
48+
COPY --from=cosign-amd64 /usr/local/bin/cosign-darwin-amd64.gz /var/www/html/clients/darwin/cosign-amd64.gz
49+
COPY --from=cosign-arm64 /usr/local/bin/cosign-darwin-arm64.gz /var/www/html/clients/darwin/cosign-arm64.gz
50+
COPY --from=cosign-amd64 /usr/local/bin/cosign.gz /var/www/html/clients/linux/cosign-amd64.gz
51+
COPY --from=cosign-arm64 /usr/local/bin/cosign.gz /var/www/html/clients/linux/cosign-arm64.gz
52+
COPY --from=cosign-ppc64le /usr/local/bin/cosign.gz /var/www/html/clients/linux/cosign-ppc64le.gz
53+
COPY --from=cosign-s390x /usr/local/bin/cosign.gz /var/www/html/clients/linux/cosign-s390x.gz
54+
COPY --from=cosign-amd64 /usr/local/bin/cosign-windows-amd64.exe.gz /var/www/html/clients/windows/cosign-amd64.gz
3455

3556
# Copy the gitsign binaries from the previous stages
36-
COPY --from=gitsign /usr/local/bin/gitsign_cli_darwin_amd64.gz /var/www/html/clients/darwin/gitsign-amd64.gz
37-
COPY --from=gitsign /usr/local/bin/gitsign_cli_darwin_arm64.gz /var/www/html/clients/darwin/gitsign-arm64.gz
38-
COPY --from=gitsign /usr/local/bin/gitsign_cli_linux_amd64.gz /var/www/html/clients/linux/gitsign-amd64.gz
39-
COPY --from=gitsign /usr/local/bin/gitsign_cli_linux_arm64.gz /var/www/html/clients/linux/gitsign-arm64.gz
40-
COPY --from=gitsign /usr/local/bin/gitsign_cli_linux_ppc64le.gz /var/www/html/clients/linux/gitsign-ppc64le.gz
41-
COPY --from=gitsign /usr/local/bin/gitsign_cli_linux_s390x.gz /var/www/html/clients/linux/gitsign-s390x.gz
42-
COPY --from=gitsign /usr/local/bin/gitsign_cli_windows_amd64.exe.gz /var/www/html/clients/windows/gitsign-amd64.gz
57+
COPY --from=gitsign-amd64 /usr/local/bin/gitsign_cli_darwin_amd64.gz /var/www/html/clients/darwin/gitsign-amd64.gz
58+
COPY --from=gitsign-arm64 /usr/local/bin/gitsign_cli_darwin_arm64.gz /var/www/html/clients/darwin/gitsign-arm64.gz
59+
COPY --from=gitsign-amd64 /usr/local/bin/gitsign_cli_linux.gz /var/www/html/clients/linux/gitsign-amd64.gz
60+
COPY --from=gitsign-arm64 /usr/local/bin/gitsign_cli_linux.gz /var/www/html/clients/linux/gitsign-arm64.gz
61+
COPY --from=gitsign-ppc64le /usr/local/bin/gitsign_cli_linux.gz /var/www/html/clients/linux/gitsign-ppc64le.gz
62+
COPY --from=gitsign-s390x /usr/local/bin/gitsign_cli_linux.gz /var/www/html/clients/linux/gitsign-s390x.gz
63+
COPY --from=gitsign-amd64 /usr/local/bin/gitsign_cli_windows_amd64.exe.gz /var/www/html/clients/windows/gitsign-amd64.gz
4364

4465
# Copy the rekor binaries from the previous stages
45-
COPY --from=rekor /usr/local/bin/rekor_cli_darwin_amd64.gz /var/www/html/clients/darwin/rekor-cli-amd64.gz
46-
COPY --from=rekor /usr/local/bin/rekor_cli_darwin_arm64.gz /var/www/html/clients/darwin/rekor-cli-arm64.gz
47-
COPY --from=rekor /usr/local/bin/rekor_cli_linux_amd64.gz /var/www/html/clients/linux/rekor-cli-amd64.gz
48-
COPY --from=rekor /usr/local/bin/rekor_cli_linux_arm64.gz /var/www/html/clients/linux/rekor-cli-arm64.gz
49-
COPY --from=rekor /usr/local/bin/rekor_cli_linux_ppc64le.gz /var/www/html/clients/linux/rekor-cli-ppc64le.gz
50-
COPY --from=rekor /usr/local/bin/rekor_cli_linux_s390x.gz /var/www/html/clients/linux/rekor-cli-s390x.gz
51-
COPY --from=rekor /usr/local/bin/rekor_cli_windows_amd64.exe.gz /var/www/html/clients/windows/rekor-cli-amd64.gz
66+
COPY --from=rekor-amd64 /usr/local/bin/rekor_cli_darwin_amd64.gz /var/www/html/clients/darwin/rekor-cli-amd64.gz
67+
COPY --from=rekor-arm64 /usr/local/bin/rekor_cli_darwin_arm64.gz /var/www/html/clients/darwin/rekor-cli-arm64.gz
68+
COPY --from=rekor-amd64 /usr/local/bin/rekor_cli_linux.gz /var/www/html/clients/linux/rekor-cli-amd64.gz
69+
COPY --from=rekor-arm64 /usr/local/bin/rekor_cli_linux.gz /var/www/html/clients/linux/rekor-cli-arm64.gz
70+
COPY --from=rekor-ppc64le /usr/local/bin/rekor_cli_linux.gz /var/www/html/clients/linux/rekor-cli-ppc64le.gz
71+
COPY --from=rekor-s390x /usr/local/bin/rekor_cli_linux.gz /var/www/html/clients/linux/rekor-cli-s390x.gz
72+
COPY --from=rekor-amd64 /usr/local/bin/rekor_cli_windows_amd64.exe.gz /var/www/html/clients/windows/rekor-cli-amd64.gz
5273

5374
# Copy the ec binaries from the previous stages
5475
COPY --from=ec /usr/local/bin/ec_darwin_amd64.gz /var/www/html/clients/darwin/ec-amd64.gz
@@ -60,31 +81,31 @@ COPY --from=ec /usr/local/bin/ec_linux_s390x.gz /var/www/html/clients/linu
6081
COPY --from=ec /usr/local/bin/ec_windows_amd64.exe.gz /var/www/html/clients/windows/ec-amd64.gz
6182

6283
# Copy the fetch-tsa-certs binaries from the previous stages
63-
COPY --from=fetch_tsa_certs /usr/local/bin/fetch_tsa_certs_darwin_arm64.gz /var/www/html/clients/darwin/fetch-tsa-certs-arm64.gz
64-
COPY --from=fetch_tsa_certs /usr/local/bin/fetch_tsa_certs_darwin_amd64.gz /var/www/html/clients/darwin/fetch-tsa-certs-amd64.gz
65-
COPY --from=fetch_tsa_certs /usr/local/bin/fetch_tsa_certs_linux_amd64.gz /var/www/html/clients/linux/fetch-tsa-certs-amd64.gz
66-
COPY --from=fetch_tsa_certs /usr/local/bin/fetch_tsa_certs_linux_arm64.gz /var/www/html/clients/linux/fetch-tsa-certs-arm64.gz
67-
COPY --from=fetch_tsa_certs /usr/local/bin/fetch_tsa_certs_linux_ppc64le.gz /var/www/html/clients/linux/fetch-tsa-certs-ppc64le.gz
68-
COPY --from=fetch_tsa_certs /usr/local/bin/fetch_tsa_certs_linux_s390x.gz /var/www/html/clients/linux/fetch-tsa-certs-s390x.gz
69-
COPY --from=fetch_tsa_certs /usr/local/bin/fetch_tsa_certs_windows_amd64.exe.gz /var/www/html/clients/windows/fetch-tsa-certs-amd64.gz
84+
COPY --from=fetch_tsa_certs-arm64 /usr/local/bin/fetch_tsa_certs_darwin_arm64.gz /var/www/html/clients/darwin/fetch-tsa-certs-arm64.gz
85+
COPY --from=fetch_tsa_certs-amd64 /usr/local/bin/fetch_tsa_certs_darwin_amd64.gz /var/www/html/clients/darwin/fetch-tsa-certs-amd64.gz
86+
COPY --from=fetch_tsa_certs-amd64 /usr/local/bin/fetch_tsa_certs_linux.gz /var/www/html/clients/linux/fetch-tsa-certs-amd64.gz
87+
COPY --from=fetch_tsa_certs-arm64 /usr/local/bin/fetch_tsa_certs_linux.gz /var/www/html/clients/linux/fetch-tsa-certs-arm64.gz
88+
COPY --from=fetch_tsa_certs-ppc64le /usr/local/bin/fetch_tsa_certs_linux.gz /var/www/html/clients/linux/fetch-tsa-certs-ppc64le.gz
89+
COPY --from=fetch_tsa_certs-s390x /usr/local/bin/fetch_tsa_certs_linux.gz /var/www/html/clients/linux/fetch-tsa-certs-s390x.gz
90+
COPY --from=fetch_tsa_certs-amd64 /usr/local/bin/fetch_tsa_certs_windows_amd64.exe.gz /var/www/html/clients/windows/fetch-tsa-certs-amd64.gz
7091

7192
# Copy the trillian-createtree binaries from the previous stages
72-
COPY --from=trillian-createtree /usr/local/bin/createtree-darwin-arm64.gz /var/www/html/clients/darwin/createtree-arm64.gz
73-
COPY --from=trillian-createtree /usr/local/bin/createtree-darwin-amd64.gz /var/www/html/clients/darwin/createtree-amd64.gz
74-
COPY --from=trillian-createtree /usr/local/bin/createtree-linux-amd64.gz /var/www/html/clients/linux/createtree-amd64.gz
75-
COPY --from=trillian-createtree /usr/local/bin/createtree-linux-arm64.gz /var/www/html/clients/linux/createtree-arm64.gz
76-
COPY --from=trillian-createtree /usr/local/bin/createtree-linux-ppc64le.gz /var/www/html/clients/linux/createtree-ppc64le.gz
77-
COPY --from=trillian-createtree /usr/local/bin/createtree-linux-s390x.gz /var/www/html/clients/linux/createtree-s390x.gz
78-
COPY --from=trillian-createtree /usr/local/bin/createtree-windows-amd64.exe.gz /var/www/html/clients/windows/createtree-amd64.gz
93+
COPY --from=trillian-createtree-arm64 /usr/local/bin/createtree-darwin-arm64.gz /var/www/html/clients/darwin/createtree-arm64.gz
94+
COPY --from=trillian-createtree-amd64 /usr/local/bin/createtree-darwin-amd64.gz /var/www/html/clients/darwin/createtree-amd64.gz
95+
COPY --from=trillian-createtree-amd64 /usr/local/bin/createtree.gz /var/www/html/clients/linux/createtree-amd64.gz
96+
COPY --from=trillian-createtree-arm64 /usr/local/bin/createtree.gz /var/www/html/clients/linux/createtree-arm64.gz
97+
COPY --from=trillian-createtree-ppc64le /usr/local/bin/createtree.gz /var/www/html/clients/linux/createtree-ppc64le.gz
98+
COPY --from=trillian-createtree-s390x /usr/local/bin/createtree.gz /var/www/html/clients/linux/createtree-s390x.gz
99+
COPY --from=trillian-createtree-amd64 /usr/local/bin/createtree-windows-amd64.exe.gz /var/www/html/clients/windows/createtree-amd64.gz
79100

80101
# Copy the trillian-updatetree binaries from the previous stages
81-
COPY --from=trillian-updatetree /usr/local/bin/updatetree-darwin-arm64.gz /var/www/html/clients/darwin/updatetree-arm64.gz
82-
COPY --from=trillian-updatetree /usr/local/bin/updatetree-darwin-amd64.gz /var/www/html/clients/darwin/updatetree-amd64.gz
83-
COPY --from=trillian-updatetree /usr/local/bin/updatetree-linux-amd64.gz /var/www/html/clients/linux/updatetree-amd64.gz
84-
COPY --from=trillian-updatetree /usr/local/bin/updatetree-linux-arm64.gz /var/www/html/clients/linux/updatetree-arm64.gz
85-
COPY --from=trillian-updatetree /usr/local/bin/updatetree-linux-ppc64le.gz /var/www/html/clients/linux/updatetree-ppc64le.gz
86-
COPY --from=trillian-updatetree /usr/local/bin/updatetree-linux-s390x.gz /var/www/html/clients/linux/updatetree-s390x.gz
87-
COPY --from=trillian-updatetree /usr/local/bin/updatetree-windows-amd64.exe.gz /var/www/html/clients/windows/updatetree-amd64.gz
102+
COPY --from=trillian-updatetree-arm64 /usr/local/bin/updatetree-darwin-arm64.gz /var/www/html/clients/darwin/updatetree-arm64.gz
103+
COPY --from=trillian-updatetree-amd64 /usr/local/bin/updatetree-darwin-amd64.gz /var/www/html/clients/darwin/updatetree-amd64.gz
104+
COPY --from=trillian-updatetree-amd64 /usr/local/bin/updatetree.gz /var/www/html/clients/linux/updatetree-amd64.gz
105+
COPY --from=trillian-updatetree-arm64 /usr/local/bin/updatetree.gz /var/www/html/clients/linux/updatetree-arm64.gz
106+
COPY --from=trillian-updatetree-ppc64le /usr/local/bin/updatetree.gz /var/www/html/clients/linux/updatetree-ppc64le.gz
107+
COPY --from=trillian-updatetree-s390x /usr/local/bin/updatetree.gz /var/www/html/clients/linux/updatetree-s390x.gz
108+
COPY --from=trillian-updatetree-amd64 /usr/local/bin/updatetree-windows-amd64.exe.gz /var/www/html/clients/windows/updatetree-amd64.gz
88109

89110
COPY --from=tuf-tool /usr/bin/tuftool /var/www/html/clients/linux/tuftool-amd64
90111
RUN gzip /var/www/html/clients/linux/tuftool-amd64

0 commit comments

Comments
 (0)