mirror of
https://github.com/lldap/lldap.git
synced 2026-03-31 15:07:48 +01:00
release-tools: Add docker flow and release preparation script
This commit is contained in:
committed by
nitnelave
parent
f1bda21cad
commit
6456149e50
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#! /bin/sh
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# Build the binary server, for x86_64.
|
||||
cargo build --release -p lldap
|
||||
|
||||
cargo install cross
|
||||
cross build --target=armv7-unknown-linux-musleabihf -p lldap --release
|
||||
|
||||
# Build the frontend.
|
||||
./app/build.sh
|
||||
|
||||
VERSION=$(git describe --tags)
|
||||
|
||||
mkdir -p /tmp/release/x86_64
|
||||
cp target/release/lldap /tmp/release/x86_64
|
||||
cp -R app/index.html app/main.js app/pkg lldap_config.docker_template.toml README.md LICENSE /tmp/release/x86_64
|
||||
tar -czvf lldap-x86_64-${VERSION}.tar.gz /tmp/release/x86_64
|
||||
|
||||
mkdir -p /tmp/release/armv7
|
||||
cp target/armv7-unknown-linux-musleabihf/release/lldap /tmp/release/armv7
|
||||
cp -R app/index.html app/main.js app/pkg lldap_config.docker_template.toml README.md LICENSE /tmp/release/armv7
|
||||
tar -czvf lldap-armv7-${VERSION}.tar.gz /tmp/release/armv7
|
||||
Reference in New Issue
Block a user