From 577a64a6bc8bb69c3337ad34bcf5f7b33cf50d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 20 Sep 2018 10:33:34 +0200 Subject: alpine-amd64: some reformat and add FILES --- jobs/alpine-amd64.run | 2 +- jobs/alpine-amd64.sh | 65 --------------------------------------------------- 2 files changed, 1 insertion(+), 66 deletions(-) delete mode 100755 jobs/alpine-amd64.sh (limited to 'jobs') diff --git a/jobs/alpine-amd64.run b/jobs/alpine-amd64.run index f9cfbbc..fbb2961 100755 --- a/jobs/alpine-amd64.run +++ b/jobs/alpine-amd64.run @@ -8,4 +8,4 @@ if [ -n "$CLEAN" ]; then fi export ROOT="$WORKSPACE/root" -flock --exclusive "$WORKSPACE/root.lock" "$(readlink -f "$0" | sed 's/\.run$/\.sh/')" +flock --exclusive "$WORKSPACE/root.lock" "$FILES/alpine/amd64.sh" diff --git a/jobs/alpine-amd64.sh b/jobs/alpine-amd64.sh deleted file mode 100755 index b737ed3..0000000 --- a/jobs/alpine-amd64.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh -. utils - -# TODO mount global alpine repository - -# TODO get latest uri from latest-releases.yml file -if [ ! -d "$ROOT" ]; then - echo_stage "Setting up new root" - wget "http://dl-cdn.alpinelinux.org/alpine/edge/releases/x86_64/alpine-minirootfs-3.8.0-x86_64.tar.gz" -O alpine.tar.gz - # TODO verify signature - gunzip alpine.tar.gz - tar -f alpine.tar --delete ./dev/null - mkdir "$ROOT" - uroot tar -xf alpine.tar -C "$ROOT" - chmod 755 "$ROOT" # This is intentional, tar changes access rights - uchroot "$ROOT" root /bin/sh < .abuild/abuild.conf' - uroot cp ~/alpinelinux.rsa.key "$ROOT/build/.abuild/cynerd@email.cz-5b8aeb6d.rsa" - uchroot "$ROOT" root 'chown build:build "/build/.abuild/cynerd@email.cz-5b8aeb6d.rsa"' - uroot cp ~/alpinelinux.rsa.key.pub "$ROOT/etc/apk/keys/cynerd@email.cz-5b8aeb6d.rsa.pub" - uroot cat >"$ROOT/etc/abuild.conf" <