fix: multiple fixes #3
4
Makefile
4
Makefile
@ -7,7 +7,7 @@ SYMLINK_PREFIX := library_
|
|||||||
REGISTRY := git.query.consul
|
REGISTRY := git.query.consul
|
||||||
OWNER := unkin
|
OWNER := unkin
|
||||||
DATE_TAG := $(shell date +%Y%m%d)
|
DATE_TAG := $(shell date +%Y%m%d)
|
||||||
SUFFIX=$(shell basename $(mktemp -u) | cut -d . -f 2)
|
SUFFIX=$(shell basename $$(mktemp -u) | cut -d . -f 2)
|
||||||
GIT_BRANCH=$(shell git branch --show-current)
|
GIT_BRANCH=$(shell git branch --show-current)
|
||||||
GIT_COMMIT := $(shell git rev-parse --short HEAD)
|
GIT_COMMIT := $(shell git rev-parse --short HEAD)
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ $(DIRS):
|
|||||||
packer build . )
|
packer build . )
|
||||||
|
|
||||||
# Update build timestamp and date in Consul if on master branch
|
# Update build timestamp and date in Consul if on master branch
|
||||||
@if [ "$(BRANCH)" = "master" ]; then \
|
@if [ "$(GIT_BRANCH)" = "master" ]; then \
|
||||||
echo "Current branch is $(GIT_BRANCH), updating consul."; \
|
echo "Current branch is $(GIT_BRANCH), updating consul."; \
|
||||||
CURRENT_TIMESTAMP=$$(date +%s); \
|
CURRENT_TIMESTAMP=$$(date +%s); \
|
||||||
READABLE_DATE=$$(date '+%Y-%m-%d %H:%M:%S %Z'); \
|
READABLE_DATE=$$(date '+%Y-%m-%d %H:%M:%S %Z'); \
|
||||||
|
|||||||
@ -9,7 +9,7 @@ images_changes=$(git diff --name-only master | grep -E '^images/')
|
|||||||
# Run `make all` if there are changes in builds/
|
# Run `make all` if there are changes in builds/
|
||||||
if [ -n "$builds_changes" ]; then
|
if [ -n "$builds_changes" ]; then
|
||||||
echo "Changes detected in builds/. Running 'make build-all'..."
|
echo "Changes detected in builds/. Running 'make build-all'..."
|
||||||
make build-all
|
make all
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run specific `make` commands for each changed file in images/
|
# Run specific `make` commands for each changed file in images/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user