1
0
Fork 0
mirror of https://github.com/kou029w/yama.git synced 2025-01-19 00:18:06 +00:00
yama/bin/build
2020-07-21 01:34:15 +09:00

15 lines
431 B
Bash
Executable file

#!/bin/sh
# ビルド
# Usage: bin/build
# Required: docker-compose
cd -- "$(dirname -- "$0")/.."
set -eux
version="$(bin/version)"
bin/import "${version}" docker.pkg.github.com/kou029w/yama/minirootfs
rm -rf dist
mkdir dist
bin/download "${version}" dist
docker-compose run --rm minirootfs sh -c 'apk update && apk add'
ssh-keygen -A -f apkovl
cp -a cache dist
tar czf dist/localhost.apkovl.tar.gz --owner=0 --group=0 -C apkovl .