Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lazerg committed Jun 25, 2024
1 parent fcbc7e0 commit 74e0d81
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ for version in "${versions[@]}"; do
major_minor=$(echo $version | cut -d '.' -f1,2 | tr -d '.')

# Define repository name
REPO="${REPO}:php$major_minor"
REPOSITORY="${REPO}:php$major_minor"

# Build and push image without xdebug
docker build . --file php.Dockerfile \
--build-arg PHP_VERSION=$version \
--build-arg NODE_VERSION=20 \
--build-arg WITH_XDEBUG=false \
--no-cache \
--tag $REPO
docker push $REPO
--tag $REPOSITORY
docker push $REPOSITORY

# Build and push image with xdebug
docker build . --file php.Dockerfile \
--build-arg PHP_VERSION=$version \
--build-arg NODE_VERSION=20 \
--build-arg WITH_XDEBUG=true \
--no-cache \
--tag $REPO-xdebug
docker push $REPO-xdebug
--tag $REPOSITORY-xdebug
docker push $REPOSITORY-xdebug
done

0 comments on commit 74e0d81

Please sign in to comment.