-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (23 loc) · 951 Bytes
/
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
tag = '0.1.0'
git_release = `git describe --tags --abbrev=0`
project_name = 'token-seeder'
create-image-tagged:
echo "creating image"
echo "docker build ${project_name}:$(tag)"
docker build -t $(project_name):$(tag) .
create-image:
echo "creating image"
echo "docker build ${project_name}:$(git_release)"
docker build -t $(project_name):$(git_release) . --no-cache
push-image: create-image
echo "pushing image"
docker push $(project_name):$(git_release)
push-image-tagged: create-image
echo "pushing image"
docker push $(project_name):$(tag)
run-image: create-image
echo "running image"
docker run --name $(project_name) -e TOKEN_ISSUER_SECRET=YOUR_SECRET -e TOKEN_ISSUER_IDENTIFIER=YOUR_IDENTIFIER -d $(project_name):$(git_release)
run-image-locally: create-image-tagged
echo "running image"
docker run --name $(project_name) -e TOKEN_ISSUER_SECRET=YOUR_SECRET -e TOKEN_ISSUER_IDENTIFIER=YOUR_IDENTIFIER -d $(project_name):$(tag)