mirror of
https://github.com/valitydev/docker-misp.git
synced 2024-11-06 08:45:18 +00:00
DockerHub build hooks
This commit is contained in:
parent
86104de8bd
commit
425b712e94
13
modules/hooks/build
Normal file
13
modules/hooks/build
Normal file
@ -0,0 +1,13 @@
|
||||
#!/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 .
|
13
server/hooks/build
Normal file
13
server/hooks/build
Normal file
@ -0,0 +1,13 @@
|
||||
#!/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 .
|
Loading…
Reference in New Issue
Block a user