File tree 23 files changed +527
-0
lines changed
23 files changed +527
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -o errexit
4
+ set -o pipefail
5
+ set -o xtrace
6
+ set -o nounset
7
+
8
+ name=$1
9
+ toml=$2
10
+ image=$3
11
+
12
+ cargo xtask dist $toml
13
+ cp target/$name /dist/$image /build-$name -image-$image .zip /work/
14
+ touch /work/this_is_not_signed.txt
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ #
3
+ # The token authentication mechanism that affords us access to other private
4
+ # repositories requires that we use HTTPS URLs for GitHub, rather than SSH.
5
+ #
6
+ override_urls=(
7
+ ' git://github.com/'
8
+
9
+ ' ssh://github.com/'
10
+
11
+
12
+ )
13
+ for (( i = 0 ; i < ${# override_urls[@]} ; i++ )) ; do
14
+ git config --add --global url.https://github.com/.insteadOf \
15
+ " ${override_urls[$i]} "
16
+ done
17
+
18
+ #
19
+ # Require that cargo use the git CLI instead of the built-in support. This
20
+ # achieves two things: first, SSH URLs should be transformed on fetch without
21
+ # requiring Cargo.toml rewriting, which is especially difficult in transitive
22
+ # dependencies; second, Cargo does not seem willing on its own to look in
23
+ # ~/.netrc and find the temporary token that buildomat generates for our job,
24
+ # so we must use git which uses curl.
25
+ #
26
+ export CARGO_NET_GIT_FETCH_WITH_CLI=true
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build gimlet-c-lab"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh gimlet-c-lab app/gimlet/rev-c-lab.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build gimlet-c"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh gimlet-c app/gimlet/rev-c.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build gimlet-d-lab"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh gimlet-d-lab app/gimlet/rev-d-lab.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build gimlet-d"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh gimlet-d app/gimlet/rev-d.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build gimlet-e-lab"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh gimlet-e-lab app/gimlet/rev-e-lab.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build gimlet-e"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh gimlet-e app/gimlet/rev-e.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build gimlet-f-lab"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh gimlet-f-lab app/gimlet/rev-f-lab.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build gimlet-f"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh gimlet-f app/gimlet/rev-f.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build psc-b"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh psc-b app/psc/rev-b.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build psc-c"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh psc-c app/psc/rev-c.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build rot"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : ]
10
+ # : access_repos = [
11
+ # : "oxidecomputer/permission-slip",
12
+ # : ]
13
+ # :
14
+
15
+ set -o errexit
16
+ set -o pipefail
17
+ set -o xtrace
18
+
19
+ _cleanup () {
20
+ kill $( jobs -p)
21
+ }
22
+
23
+ trap _cleanup SIGINT SIGTERM EXIT
24
+
25
+ source .github/buildomat/force-git-over-https.sh
26
+ source .github/buildomat/permslip-setup.sh
27
+
28
+
29
+ cargo xtask dist app/oxide-rot-1/app-dev.toml
30
+ $PERMSLIP_DIR /target/release/permslip --url=http://localhost:41340 \
31
+ sign " UNTRUSTED bart" \
32
+ target/oxide-rot-1-selfsigned/dist/a/build-oxide-rot-1-selfsigned-image-a.zip \
33
+ --version 0.0.0-ci > /work/build-oxide-rot-1-selfsigned-image-a.zip
34
+
35
+ $PERMSLIP_DIR /target/release/permslip --url=http://localhost:41340 \
36
+ sign " UNTRUSTED bart" \
37
+ target/oxide-rot-1-selfsigned/dist/b/build-oxide-rot-1-selfsigned-image-b.zip \
38
+ --version 0.0.0-ci > /work/build-oxide-rot-1-selfsigned-image-b.zip
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build sidecar-b-lab"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh sidecar-b-lab app/sidecar/rev-b-lab.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build sidecar-b"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh sidecar-b app/sidecar/rev-b.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build sidecar-c-lab"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh sidecar-c-lab app/sidecar/rev-c-lab.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build sidecar-c"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh sidecar-c app/sidecar/rev-c.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build sidecar-d-lab"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh sidecar-d-lab app/sidecar/rev-d-lab.toml default
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # :
3
+ # : name = "build sidecar-d"
4
+ # : variety = "basic"
5
+ # : target = "ubuntu-22.04"
6
+ # : rust_toolchain = true
7
+ # : output_rules = [
8
+ # : "=/work/*.zip",
9
+ # : "=/work/this_is_not_signed.txt",
10
+ # : ]
11
+
12
+ set -o errexit
13
+ set -o pipefail
14
+ set -o xtrace
15
+
16
+ exec .github/buildomat/build-one.sh sidecar-d app/sidecar/rev-d.toml default
You can’t perform that action at this time.
0 commit comments