Skip to content

Commit

Permalink
Merge pull request #54 from supabase/fix-xattr-builds
Browse files Browse the repository at this point in the history
fix build: pkg was unable to package xattr
  • Loading branch information
inian authored Jul 20, 2021
2 parents 160a02e + e0a720e commit 20dea1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ jobs:
npm run pkg -- --targets node12-linux-x64,node12-macos-x64 --out-path bin
mv bin/server-macos storage-api-macos-x86_64
mv bin/server-linux storage-api-x86_64
tar -czvf storage-api-linux-x64.tar.gz storage-api-x86_64 migrations/
tar -czvf storage-api-macos-x64.tar.gz storage-api-macos-x86_64 migrations/
cp node_modules/fs-xattr/build/Release/xattr.node .
tar -czvf storage-api-linux-x64.tar.gz storage-api-x86_64 migrations/ xattr.node
tar -czvf storage-api-macos-x64.tar.gz storage-api-macos-x86_64 migrations/ xattr.node
- name: Upload x64 binary to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down Expand Up @@ -120,8 +121,9 @@ jobs:
. ~/.nvm/nvm.sh
npm ci
npm run build
cp node_modules/fs-xattr/build/Release/xattr.node .
npm run pkg -- --targets node12-linux-arm64 --output storage-api-aarch64
tar -czvf storage-api-aarch64.tar.gz storage-api-aarch64 migrations/
tar -czvf storage-api-aarch64.tar.gz storage-api-aarch64 migrations/ xattr.node
cp storage-api-aarch64.tar.gz /artifacts/storage-api-aarch64.tar.gz
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down
1 change: 1 addition & 0 deletions gh-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ WORKDIR /root/storage

COPY storage-api-x86_64 .
COPY migrations ./migrations
COPY node_modules/fs-xattr/build/Release/xattr.node .

ENTRYPOINT "./storage-api-x86_64"
EXPOSE 5000

0 comments on commit 20dea1a

Please # to comment.