forked from ibm-mas/ansible-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 734 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
.PHONY: ansible-build ansible-install ansible-all docker-build docker-run docker-all clean
.DEFAULT_GOAL := ansible-all
ansible-build:
ansible-galaxy collection build --output-path image/ansible-devops/app-root ibm/mas_devops --force
mv image/ansible-devops/app-root/ibm-mas_devops-11.0.0.tar.gz image/ansible-devops/app-root/ibm-mas_devops.tar.gz
ansible-install:
ansible-galaxy collection install image/ansible-devops/app-root/ibm-mas_devops.tar.gz --force
ansible-all: ansible-build ansible-install
docker-build:
docker build -t ansible-devops:local image/ansible-devops
docker-run:
docker run -ti ansible-devops:local
docker-all: docker-build docker-run
clean:
rm image/ansible-devops/ibm-mas_devops.tar.gz