-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
31 lines (23 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
DEPLOY_DATE = $(shell date +%s)
GH_TOKEN = $(TOKEN)
Default:
@echo "Usage: make [TASK]";
@echo "Available tasks:";
@echo "update-resources: \tto update the local version of the resource-types (i.e. clone the latest https://github.com/concourse/resource-types)"
@echo "build-docker: \t\tbuild the Dockerfile locally and tag it concourse/dutyfree"
@echo "publish-docker: \tbuilds concourse/dutyfree and then publishes it, needs appropriate permissions to be able to push"
update-resources:
git submodule update && \
cd warehouse/resource-types && \
git checkout master && \
git pull
git add warehouse/resource-types && \
git commit -s -m "update resource-types @"$(shell git --git-dir ./warehouse/resource-types/.git log --format=format:%H -1 --pretty=format:%h)
@echo "\n\n\n\n\n"
@echo "*****************************************"
@echo "* Resource Types are now at latest,\t*\n* Please remember to push to a branch.\t*"
@echo "*****************************************"
build-docker:
docker build . -t concourse/dutyfree
publish-docker: | build-docker
docker push concourse/dutyfree