mirror of https://github.com/k3s-io/k3s
Darren Shepherd
6 years ago
16 changed files with 90 additions and 22 deletions
@ -0,0 +1,9 @@
|
||||
#!/bin/bash |
||||
|
||||
ROOT_VERSION=v0.0.1 |
||||
|
||||
source $(dirname $0)/version.sh |
||||
|
||||
cd $(dirname $0)/.. |
||||
|
||||
curl --compressed -sfL https://github.com/ibuildthecloud/k3s-root/releases/download/${ROOT_VERSION}/k3s-root-${ARCH}.tar | tar xf - |
@ -0,0 +1,3 @@
|
||||
#!/bin/bash |
||||
|
||||
SKIP_VALIDATE=true $(dirname $0)/ci |
@ -0,0 +1,39 @@
|
||||
#!/bin/bash |
||||
set -e |
||||
|
||||
cd $(dirname $0)/.. |
||||
|
||||
if [ -z "$K3S_ARM64_HOST" ]; then |
||||
echo K3S_ARM_HOST must be set |
||||
exit 1 |
||||
fi |
||||
|
||||
if [ -z "$K3S_ARM64_HOST_USER" ]; then |
||||
echo K3S_ARM_HOST_USER must be set |
||||
exit 1 |
||||
fi |
||||
|
||||
if [ -z "$K3S_ARM_HOST" ]; then |
||||
K3S_ARM_HOST=${K3S_ARM64_HOST} |
||||
fi |
||||
|
||||
if [ -z "$K3S_ARM_HOST_USER" ]; then |
||||
K3S_ARM_HOST_USER=${K3S_ARM64_HOST_USER} |
||||
fi |
||||
|
||||
|
||||
rm -rf dist |
||||
mkdir -p build |
||||
make ci > build/build-amd64.log 2>&1 & |
||||
AMD_PID=$! |
||||
|
||||
DAPPER_HOST_ARCH=arm DOCKER_HOST="ssh://${K3S_ARM_HOST_USER}@${K3S_ARM_HOST}" make release-arm |
||||
DAPPER_HOST_ARCH=arm64 DOCKER_HOST="ssh://${K3S_ARM64_HOST_USER}@${K3S_ARM64_HOST}" make release-arm |
||||
|
||||
echo Waiting for amd64 build to finish |
||||
wait -n $AMD_PID || { |
||||
cat build/build-amd64.log |
||||
exit 1 |
||||
} |
||||
ls -la dist |
||||
echo Done |
Loading…
Reference in new issue