-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add buildomat jobs for select images #1904
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
set -o nounset | ||
|
||
name=$1 | ||
toml=$2 | ||
image=$3 | ||
|
||
cargo xtask dist $toml | ||
cp target/$name/dist/$image/build-$name-image-$image.zip /work/ | ||
touch /work/this_is_not_signed.txt |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# The token authentication mechanism that affords us access to other private | ||
# repositories requires that we use HTTPS URLs for GitHub, rather than SSH. | ||
# | ||
override_urls=( | ||
'git://github.com/' | ||
'[email protected]:' | ||
'ssh://github.com/' | ||
'ssh://[email protected]/' | ||
'git+ssh://[email protected]/' | ||
) | ||
for (( i = 0; i < ${#override_urls[@]}; i++ )); do | ||
git config --add --global url.https://github.com/.insteadOf \ | ||
"${override_urls[$i]}" | ||
done | ||
|
||
# | ||
# Require that cargo use the git CLI instead of the built-in support. This | ||
# achieves two things: first, SSH URLs should be transformed on fetch without | ||
# requiring Cargo.toml rewriting, which is especially difficult in transitive | ||
# dependencies; second, Cargo does not seem willing on its own to look in | ||
# ~/.netrc and find the temporary token that buildomat generates for our job, | ||
# so we must use git which uses curl. | ||
# | ||
export CARGO_NET_GIT_FETCH_WITH_CLI=true |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build gimlet-c-lab" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh gimlet-c-lab app/gimlet/rev-c-lab.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build gimlet-c" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh gimlet-c app/gimlet/rev-c.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build gimlet-d-lab" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh gimlet-d-lab app/gimlet/rev-d-lab.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build gimlet-d" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh gimlet-d app/gimlet/rev-d.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build gimlet-e-lab" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh gimlet-e-lab app/gimlet/rev-e-lab.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build gimlet-e" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh gimlet-e app/gimlet/rev-e.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build gimlet-f-lab" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh gimlet-f-lab app/gimlet/rev-f-lab.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build gimlet-f" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh gimlet-f app/gimlet/rev-f.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build psc-b" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh psc-b app/psc/rev-b.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build psc-c" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh psc-c app/psc/rev-c.toml default |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build rot" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: ] | ||
#: access_repos = [ | ||
#: "oxidecomputer/permission-slip", | ||
#: ] | ||
#: | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
_cleanup () { | ||
kill $(jobs -p) | ||
} | ||
|
||
trap _cleanup SIGINT SIGTERM EXIT | ||
|
||
source .github/buildomat/force-git-over-https.sh | ||
source .github/buildomat/permslip-setup.sh | ||
|
||
|
||
cargo xtask dist app/oxide-rot-1/app-dev.toml | ||
$PERMSLIP_DIR/target/release/permslip --url=http://localhost:41340 \ | ||
sign "UNTRUSTED bart" \ | ||
target/oxide-rot-1-selfsigned/dist/a/build-oxide-rot-1-selfsigned-image-a.zip \ | ||
--version 0.0.0-ci > /work/build-oxide-rot-1-selfsigned-image-a.zip | ||
|
||
$PERMSLIP_DIR/target/release/permslip --url=http://localhost:41340 \ | ||
sign "UNTRUSTED bart" \ | ||
target/oxide-rot-1-selfsigned/dist/b/build-oxide-rot-1-selfsigned-image-b.zip \ | ||
--version 0.0.0-ci > /work/build-oxide-rot-1-selfsigned-image-b.zip |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build sidecar-b-lab" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh sidecar-b-lab app/sidecar/rev-b-lab.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build sidecar-b" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh sidecar-b app/sidecar/rev-b.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build sidecar-c-lab" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh sidecar-c-lab app/sidecar/rev-c-lab.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build sidecar-c" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh sidecar-c app/sidecar/rev-c.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build sidecar-d-lab" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh sidecar-d-lab app/sidecar/rev-d-lab.toml default |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
#: | ||
#: name = "build sidecar-d" | ||
#: variety = "basic" | ||
#: target = "ubuntu-22.04" | ||
#: rust_toolchain = true | ||
#: output_rules = [ | ||
#: "=/work/*.zip", | ||
#: "=/work/this_is_not_signed.txt", | ||
#: ] | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
exec .github/buildomat/build-one.sh sidecar-d app/sidecar/rev-d.toml default |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dumb question: why don't we need quotes around "https://github.com", i.e.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I uh borrowed this setup from omicron https://github.com/oxidecomputer/omicron/blob/main/tools/include/force-git-over-https.sh