Skip to content

Commit ad4ac64

Browse files
committed
Build both images on "make build"
1 parent cc39e12 commit ad4ac64

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ matrix:
1212
fast_finish: true
1313

1414
script:
15-
- if [ "$flavour" = "latest" ]; then make build; else make build-alpine; fi
15+
- if [ "$flavour" = "latest" ]; then make build-latest; else make build-alpine; fi
1616
- docker run -it --rm jakzal/phpqa:$flavour php /usr/local/bin/tools.php test
1717
- docker run -it --rm jakzal/phpqa:$flavour
1818

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
default: build
22

3-
build:
4-
docker build -t jakzal/phpqa:latest .
3+
build: build-latest build-alpine
54
.PHONY: build
65

6+
build-latest:
7+
docker build -t jakzal/phpqa:latest .
8+
.PHONY: build-latest
9+
710
build-alpine:
811
docker build -f Dockerfile-alpine -t jakzal/phpqa:alpine .
912
.PHONY: build-alpine

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ phpqa phpstan analyse src
8282
```bash
8383
git clone https://github.com/jakzal/phpqa.git
8484
cd phpqa
85-
make build
85+
make build-latest
8686
```
8787

8888
To build the alpine version:

0 commit comments

Comments
 (0)