-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild
More file actions
executable file
·31 lines (25 loc) · 908 Bytes
/
build
File metadata and controls
executable file
·31 lines (25 loc) · 908 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
#!/bin/bash -ex
# This can for sure to be done much better, but let's hope it works.
DOCKER_ARCH=${BUILD_ARCH:-amd64}
DOCKER_ORG=samip537
DOCKER_IMAGE=docker-flextv:${DOCKER_ARCH}
if [ ${BUILD_ARCH} = "amd64" ]; then
docker build --build-arg ARCH=${DOCKER_ARCH} \
-t $DOCKER_ORG/$DOCKER_IMAGE \
-f Dockerfile .
fi
if [ ${BUILD_ARCH} = "arm32v6" ]; then
docker build --build-arg ARCH=${DOCKER_ARCH} \
-t $DOCKER_ORG/$DOCKER_IMAGE \
-f Dockerfile.armhf .
fi
if [ ${BUILD_ARCH} = "arm32v7" ]; then
docker build --build-arg ARCH=${DOCKER_ARCH} \
-t $DOCKER_ORG/$DOCKER_IMAGE \
-f Dockerfile.armhf .
fi
if [ ${BUILD_ARCH} = "arm64v8" ]; then
docker build --build-arg ARCH=${DOCKER_ARCH} \
-t $DOCKER_ORG/$DOCKER_IMAGE \
-f Dockerfile.aarch64 .
fi