-
Notifications
You must be signed in to change notification settings - Fork 120
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: Andrew Rynhard <andrew@andrewrynhard.com>
- Loading branch information
1 parent
128429e
commit e529158
Showing
1 changed file
with
26 additions
and
36 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,40 +1,30 @@ | ||
name: cni | ||
steps: | ||
- sources: | ||
- url: https://github.com/containernetworking/cni/releases/download/v0.6.0/cni-amd64-v0.6.0.tgz | ||
destination: cni-amd64-v0.6.0.tgz | ||
sha256: a7f84a742c8f3a95843b3cc636444742554a4853835649ec371a07c841daebab | ||
sha512: 348a11d87d869625feb41c4abc2e1ed06efd5b131183ce0039b06222910d045407b1a0de1200d123693df7a33d4cc0801ed268e608caf307303627746c0119fc | ||
- url: https://github.com/containernetworking/plugins/releases/download/v0.7.4/cni-plugins-amd64-v0.7.4.tgz | ||
destination: cni-plugins-amd64-v0.7.4.tgz | ||
sha256: 5f30e4c9090cbb5314452f4c2bcce48907f003b1614a7fc9615ddedbde31cf00 | ||
sha512: e53956b8a9d2d6acfd55758e9323aae408f38f834fbf6ec789ab755e14d429c353f518bf8212338ab864a65c37c2b5abd2a7884656b44405ace2d88c21679341 | ||
- url: https://github.com/containernetworking/cni/releases/download/v0.6.0/cni-arm64-v0.6.0.tgz | ||
destination: cni-arm64-v0.6.0.tgz | ||
sha256: 2e62dc66d2f908c571ca61b600f52ff59dd1e8ac1b6bcd605ffe4e3b76b258d3 | ||
sha512: aa63deaa96fffff863ab41386654f2bf0f419bbe5ec43f311e39991096de7455c68af3f5bbdbeadc11fd4e93adedbd1480f43d8249964e754d8eb9cf48667a79 | ||
- url: https://github.com/containernetworking/plugins/releases/download/v0.7.4/cni-plugins-arm64-v0.7.4.tgz | ||
destination: cni-plugins-arm64-v0.7.4.tgz | ||
sha256: d85ebf5dfcd34eda7d9c9e9d4ab609e24541d0877c4bcb9d5837cfab207ab653 | ||
sha512: 54efa6fb3aa892cd6213a7f4efaa88adae8b851dbb53f8bd464a5050cc635153d74d7ff59b682653fa2db345b718dafd1684c91b0bd2561213b780439f951387 | ||
install: | ||
- | | ||
mkdir -p /rootfs/opt/cni/bin | ||
- sources: | ||
- url: https://github.com/containernetworking/plugins/releases/download/v0.8.2/cni-plugins-linux-amd64-v0.8.2.tgz | ||
destination: cni-plugins-amd64.tgz | ||
sha256: 21283754ffb953329388b5a3c52cef7d656d535292bda2d86fcdda604b482f85 | ||
sha512: a8fd7ffce7f4f1fb00ac2e4840b7961efc3ec844c5e99035c72baa95f038b316552ce71f8a17f82c04d614da490689953a7a80008d7b9be563187673813934b5 | ||
- url: https://github.com/containernetworking/plugins/releases/download/v0.8.2/cni-plugins-linux-arm-v0.8.2.tgz | ||
destination: cni-plugins-arm64.tgz | ||
sha256: d18d89fc82c8382b7b291e086f80188c143682e48c53ee25f522763c9395d0d9 | ||
sha512: 897004bcffe69f2079be06591e6b3a5e1721a923db940df6fa2396cfb906b7b721c5f3e08350d023ffaf16abb76d59571be9ee97c26e3cd7204c6483ce51c42a | ||
install: | ||
- | | ||
mkdir -p /rootfs/opt/cni/bin | ||
case $ARCH in | ||
x86_64) | ||
tar -xzf cni-amd64-v0.6.0.tgz -C /rootfs/opt/cni/bin | ||
tar -xzf cni-plugins-amd64-v0.7.4.tgz -C /rootfs/opt/cni/bin | ||
;; | ||
aarch64) | ||
tar -xzf cni-arm64-v0.6.0.tgz -C /rootfs/opt/cni/bin | ||
tar -xzf cni-plugins-arm64-v0.7.4.tgz -C /rootfs/opt/cni/bin | ||
;; | ||
*) | ||
echo "unsupported arch ${ARCH}" | ||
exit 1 | ||
;; | ||
esac | ||
case $ARCH in | ||
x86_64) | ||
tar -xzf cni-plugins-amd64.tgz -C /rootfs/opt/cni/bin | ||
;; | ||
aarch64) | ||
tar -xzf cni-plugins-arm64.tgz -C /rootfs/opt/cni/bin | ||
;; | ||
*) | ||
echo "unsupported arch ${ARCH}" | ||
exit 1 | ||
;; | ||
esac | ||
finalize: | ||
- from: /rootfs | ||
to: / | ||
- from: /rootfs | ||
to: / |