Skip to content

Commit

Permalink
Pull image before build
Browse files Browse the repository at this point in the history
  • Loading branch information
fox91 committed Jul 8, 2023
1 parent 48aa6c2 commit ca4a041
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ OS_V = bullseye
all: build test-version test-module test-info test-tmp-files

.PHONY: test
all: test-version test-module test-info test-tmp-files
test: test-version test-module test-info test-tmp-files

.PHONY: pull
pull:
@set -eu; \
echo "::group::-=-=- $@ \"PHP: $(PHP_V), OS: $(OS_V)\" =-=-="; \
docker pull php:$(PHP_V)-$(OS_V); \
echo "::endgroup::"

.PHONY: build
build:
build: pull
@set -eu; \
for file in $(shell find $(CURDIR)/$(PHP_V)/$(OS_V)/ -type f -name Dockerfile | sort); do \
ext_n=$$(basename $$(dirname $$file)); \
Expand Down

0 comments on commit ca4a041

Please sign in to comment.