Skip to content

Commit

Permalink
Merge pull request #32 from renderedtext/db/fix-running-tests-on-tags
Browse files Browse the repository at this point in the history
Fix issues with running test docker images on tags
  • Loading branch information
DamjanBecirovic authored Aug 28, 2024
2 parents 67c8f39 + efb0e37 commit 5c3db69
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ APP_NAME=when

export MIX_ENV?=dev

BRANCH=$(shell git rev-parse --abbrev-ref HEAD | sed 's/[^a-z]//g')
BRANCH := $(shell branch=$$(git rev-parse --abbrev-ref HEAD); \
if [ "$$branch" = "HEAD" ]; then \
echo "master"; \
else \
echo "$$branch" | sed 's/[^a-z]//g'; \
fi)
SECURITY_TOOLBOX_BRANCH?=master
SECURITY_TOOLBOX_TMP_DIR?=/tmp/security-toolbox
REGISTRY_HOST?=local
Expand Down

0 comments on commit 5c3db69

Please sign in to comment.