forked from adamlaska/electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcibuild-linux
More file actions
executable file
·37 lines (31 loc) · 960 Bytes
/
cibuild-linux
File metadata and controls
executable file
·37 lines (31 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
MESSAGE="$(git log --format=%B -n 1 HEAD)"
case ${MESSAGE} in
Bump* ) export ELECTRON_RELEASE=1 ;;
esac
if [[ -z "${ELECTRON_RELEASE}" ]]; then
echo "Generating Linux $TARGET_ARCH debug build"
else
echo "Generating Linux $TARGET_ARCH release build"
fi
set +x
set -e
set -o pipefail
git submodule sync --recursive
git submodule update --init --recursive
docker build \
--force-rm \
--tag electron-linux \
.
docker run \
--rm \
--env TARGET_ARCH="$TARGET_ARCH" \
--env ELECTRON_RELEASE="$ELECTRON_RELEASE" \
--env ELECTRON_GITHUB_TOKEN="$BUILD_ELECTRON_ELECTRON_GITHUB_TOKEN" \
--env ELECTRON_S3_BUCKET="$BUILD_ELECTRON_ELECTRON_S3_BUCKET" \
--env ELECTRON_S3_ACCESS_KEY="$BUILD_ELECTRON_ELECTRON_S3_ACCESS_KEY" \
--env ELECTRON_S3_SECRET_KEY="$BUILD_ELECTRON_ELECTRON_S3_SECRET_KEY" \
--user "$UID" \
--volume "$PWD":/workspace/electron \
--workdir /workspace/electron \
electron-linux script/cibuild