mirror of https://github.com/MISP/misp-docker
14 lines
424 B
Bash
Executable File
14 lines
424 B
Bash
Executable File
#!/bin/bash
|
|
# https://docs.docker.com/docker-cloud/builds/advanced/
|
|
|
|
# $IMAGE_NAME var is injected into the build so the tag is correct.
|
|
echo "[***] Build hook running"
|
|
|
|
export $(grep -v '^#' ../.env | xargs)
|
|
|
|
docker build \
|
|
--build-arg BUILD_RFC3339=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
|
|
--build-arg COMMIT=$(git rev-parse --short HEAD) \
|
|
--build-arg VERSION=$(git describe --tags --always) \
|
|
-t $IMAGE_NAME .
|