Use makefile for releasing installer
This commit is contained in:
parent
7141d364e1
commit
f7ae400eb3
7
Makefile
7
Makefile
@ -1,4 +1,4 @@
|
|||||||
.PHONY: test shellcheck docopt kcov codecov
|
.PHONY: test shellcheck docopt kcov codecov release-installer
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@sudo DOCKER_CONTEXT=default docker run \
|
@sudo DOCKER_CONTEXT=default docker run \
|
||||||
@ -43,3 +43,8 @@ codecov: SHELL:=/bin/bash
|
|||||||
codecov:
|
codecov:
|
||||||
@bash <(curl -s https://codecov.io/bash) \
|
@bash <(curl -s https://codecov.io/bash) \
|
||||||
-s coverage -t $$(pass show hosts/swarm.autonomic.zone/drone/codecov/token)
|
-s coverage -t $$(pass show hosts/swarm.autonomic.zone/drone/codecov/token)
|
||||||
|
|
||||||
|
release-installer:
|
||||||
|
@docker stack rm abra-installer-script && \
|
||||||
|
cd installer && \
|
||||||
|
docker stack deploy -c compose.yml abra-installer-script
|
||||||
|
@ -47,13 +47,12 @@ git pull
|
|||||||
|
|
||||||
## Hack
|
## Hack
|
||||||
|
|
||||||
It's written in Bash! Just open up the `abra` file and start hacking. Then you can run it in place with `./abra`. The command-line interface is generated via [docopt](http://docopt.org/). If you add arguments then you need to run `make docopt` ro regenerate the parser.
|
It's written in Bash version 4 or greater! Just open up the `abra` file and start hacking. Then you can run it in place with `./abra`. The command-line interface is generated via [docopt](http://docopt.org/). If you add arguments then you need to run `make docopt` ro regenerate the parser.
|
||||||
|
|
||||||
Please remember to update the [CHANGELOG](./CHANGELOG.md) when you make a change.
|
Please remember to update the [CHANGELOG](./CHANGELOG.md) when you make a change.
|
||||||
|
|
||||||
To deploy a new version of the installer scripts:
|
To deploy a new version of the installer scripts:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd installer
|
make release-installer
|
||||||
DOCKER_CONTEXT=swarm.autonomic.zone docker stack deploy -c compose.yml abra-installer-script
|
|
||||||
```
|
```
|
||||||
|
@ -26,10 +26,8 @@ services:
|
|||||||
|
|
||||||
configs:
|
configs:
|
||||||
abra_installer:
|
abra_installer:
|
||||||
name: abra_installer_v2
|
|
||||||
file: installer
|
file: installer
|
||||||
abra_conf:
|
abra_conf:
|
||||||
name: abra_conf_v1
|
|
||||||
file: nginx.conf
|
file: nginx.conf
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
Reference in New Issue
Block a user