This file contains hidden or 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
Tag an image as a new tag of the repository | |
docker tag 1d2c78d1895e serhiikamolov/php:8.2-fpm | |
Push to repo | |
docker push serhiikamolov/php:8.2-fpm | |
Build for diffferent platforms and push | |
docker buildx build --platform linux/amd64,linux/arm64 -t serhiikamolov/php:8.4-fpm --push .docker/php-fpm |
This file contains hidden or 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
#!/usr/bin/env bash | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[1;33m' | |
NC='\033[0m' # No Color | |
echo -e "\n${GREEN}Running pre-commit hook${NC}" | |
# Get list of the modified files |