-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
25 lines (17 loc) · 760 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
KEY_NAME ?= $(shell whoami)
shiftstack-bot: shiftstack-bot-clean-ci-resources shiftstack-bot-cireport
.PHONY: shiftstack-bot
shiftstack-bot-clean-ci-resources: bot/cloud-credentials.json
ansible-playbook -i bot/inventory.yaml bot/clean-ci-resources.yaml
.PHONY: shiftstack-bot-clean-ci-resources
shiftstack-bot-cireport:
ansible-playbook -i bot/inventory.yaml bot/cireport.yaml
.PHONY: shiftstack-bot-cireport
bot/cloud-credentials.json:
bot/openstack-credentials.sh vexxhost moc-ci moc psi > $@
server:
OS_CLOUD=psi ./server.sh -f ci.m1.micro -i Fedora-Cloud-Base-33 -e provider_net_shared_3 -k $(KEY_NAME) -p shiftstack-bot
.PHONY: server
shellcheck:
find . -type f -name "*.sh" | xargs --verbose --no-run-if-empty shellcheck
.PHONY: shellcheck