-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI/CD adjustments and repository reorganization
- Loading branch information
1 parent
8ba24f7
commit 24d37b6
Showing
8 changed files
with
107 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
IMAGE?=ghcr.io/fabioassuncao/php | ||
VERSION?=8.3 | ||
DOCKER_RUN:=docker run --rm ${IMAGE}:${VERSION} | ||
DEFAULT_ARCHS?=linux/amd64 | ||
|
||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "⚡ \033[34m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
build: ## Build docker image | ||
docker buildx build --load --platform $(DEFAULT_ARCHS) -t $(IMAGE):${VERSION} -f php/${VERSION}/Dockerfile php/${VERSION}/ | ||
|
||
release: ### Build and push image to Registry | ||
echo "Releasing: ${IMAGE}${VERSION}" | ||
docker buildx build --push --platform $(DEFAULT_ARCHS) -t $(IMAGE):${VERSION} -f php/${VERSION}/Dockerfile php/${VERSION}/ | ||
|
||
release-all: ### Build all PHP version and push image to Registry | ||
echo "Releasing all PHP version" | ||
VERSION=8.3 make release | ||
|
||
test: ### Test image | ||
$(DOCKER_RUN) php -v | ||
$(DOCKER_RUN) sh -c "php -v | grep ${VERSION}" | ||
$(DOCKER_RUN) sh -c "php -v | grep OPcache" | ||
$(DOCKER_RUN) sh -c "nginx -t" | ||
|
||
test-all: ### Test all image | ||
VERSION=8.3 make build test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.