-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alexey Igrychev <[email protected]>
- Loading branch information
1 parent
4f731e3
commit 59af5a4
Showing
7 changed files
with
35 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
FROM golang:1.19 as tuf_repo | ||
|
||
RUN go install github.com/theupdateframework/go-tuf/cmd/[email protected] | ||
|
||
RUN mkdir /workspace | ||
WORKDIR /workspace | ||
|
||
ENV TUF_ROOT_PASSPHRASE="foobar" \ | ||
TUF_TARGETS_PASSPHRASE="foobar" \ | ||
TUF_SNAPSHOT_PASSPHRASE="foobar" \ | ||
TUF_TIMESTAMP_PASSPHRASE="foobar" | ||
RUN tuf gen-key root \ | ||
&& tuf gen-key targets \ | ||
&& tuf gen-key snapshot \ | ||
&& tuf gen-key timestamp \ | ||
&& tuf sign root.json | ||
|
||
COPY staged /workspace/staged | ||
COPY keys /workspace/keys | ||
RUN find staged/targets -type f -print0 | xargs -0 -n1 | sed -e "s|^staged/targets/||" | tuf add \ | ||
&& tuf snapshot \ | ||
&& tuf timestamp \ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters