File: build

package info (click to toggle)
syslog-ng 4.8.1-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,440 kB
  • sloc: ansic: 177,631; python: 13,035; cpp: 11,611; makefile: 7,011; sh: 5,147; java: 3,651; xml: 3,344; yacc: 1,377; lex: 599; perl: 193; awk: 190; objc: 162
file content (13 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set +x
set +e


# we are running in dbld/images as current directory and we need dbld
cd ../..
DBLD_DIR="./${BUILD_PATH}"

ARG_IMAGE_PLATFORM=$(basename $DOCKERFILE_PATH .dockerfile)
${DBLD_DIR}/prepare-image-build $ARG_IMAGE_PLATFORM
docker build --build-arg=COMMIT=$(git rev-parse --short HEAD) --build-arg=ARG_IMAGE_PLATFORM=${ARG_IMAGE_PLATFORM} -t $IMAGE_NAME -f ${DBLD_DIR}/$DOCKERFILE_PATH ${DBLD_DIR}