-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (45 loc) · 1.1 KB
/
Makefile
File metadata and controls
53 lines (45 loc) · 1.1 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
VERSION:=$(shell ./aws-assume -v);
ACTION_HELP := github-action-help
ACTION_INSTALL := github-action-install
install:
./install.sh
test:
@echo ""
@echo ""
@echo "~~~~~~~~~~~~~~~~~~~~~~~~~"
./aws-assume cp-public-key help
@echo ""
@echo ""
@echo "~~~~~~~~~~~~~~~~~~~~~~~~~"
./aws-assume upload-public-key help
@echo ""
@echo ""
@echo "~~~~~~~~~~~~~~~~~~~~~~~~~"
./aws-assume get-ssh-config help
@echo ""
@echo ""
@echo "~~~~~~~~~~~~~~~~~~~~~~~~~"
./aws-assume temp-creds help
@echo ""
@echo ""
@echo "~~~~~~~~~~~~~~~~~~~~~~~~~"
./aws-assume open help
@echo ""
@echo ""
@echo "~~~~~~~~~~~~~~~~~~~~~~~~~"
./aws-assume help
#test within docker
test-docker: test-action-install test-action-help
build-action-install:
docker build -t ${ACTION_INSTALL} actions/install
test-action-install: build-action-install
docker run --rm \
-v ${PWD}:/github/workspace/ ${ACTION_INSTALL}
build-action-help:
docker build -t ${ACTION_HELP} actions/help
test-action-help: build-action-help
docker run --rm \
-v ${PWD}:/github/workspace/ ${ACTION_HELP}
push-tag:
git tag ${VERSION}
git push --tags