Skip to content

Commit

Permalink
chore: add alpine as build target
Browse files Browse the repository at this point in the history
We need this to be able to run Garden in an alpine Docker container.
  • Loading branch information
eysi09 authored and thsig committed Mar 18, 2019
1 parent a230d3e commit 5d7cae2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions garden-service/bin/build-pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ rsync -r --exclude=.garden --exclude=.git static tmp/dist

echo "-> Building executables..."
cd dist
# note: using the npm package is still preferred on macOS, because it needs the native fsevents library
pkg --target node10-macos-x64,node10-linux-x64,node10-win-x64 ../tmp/dist
pkg --target node10-macos-x64,node10-linux-x64,node10-win-x64,node10-alpine-x64 ../tmp/dist

echo "-> Preparing packages..."

Expand All @@ -34,6 +33,16 @@ tar -czf garden-${version}-linux-amd64.tar.gz linux-amd64
echo " -> cleaning up tmp files"
rm -rf linux-amd64

echo " -> alpine-amd64"
rm -rf alpine-amd64
mkdir alpine-amd64
mv garden-cli-alpine alpine-amd64/garden
cp -r ../tmp/dist/static alpine-amd64
echo " -> tar"
tar -czf garden-${version}-alpine-amd64.tar.gz alpine-amd64
echo " -> cleaning up tmp files"
rm -rf alpine-amd64

echo " -> macos-amd64"
rm -rf macos-amd64
mkdir macos-amd64
Expand Down

0 comments on commit 5d7cae2

Please sign in to comment.