concourse-ssh-resource/Makefile

18 lines
514 B
Makefile
Raw Normal View History

2022-05-06 15:51:08 +02:00
SOURCES := $(shell find ./src -type f -and -not -name '*.vars')
SOURCES_REL := $(shell cd ./src && find ./ -type f -and -not -name '*.vars')
2022-05-06 15:39:34 +02:00
2022-05-06 15:51:08 +02:00
build: artifacts/docker-marker
shellcheck: artifacts/shellcheck-log
artifacts/shellcheck-log: ${SOURCES} artifacts
cd ./src && shellcheck ${SOURCES_REL} > ../artifacts/shellcheck-log
artifacts:
mkdir -p artifacts
artifacts/docker-marker: Dockerfile ${SOURCES} artifacts/shellcheck-log
docker build -t redxef/concourse-ssh-resource .
touch artifacts/docker-marker
2022-05-06 15:39:34 +02:00