Skip to content

Commit 529c369

Browse files
committed
Fix alpine isue
1 parent c36ac15 commit 529c369

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ jobs:
8080
file: ./images/8.2/Dockerfile-alpine
8181
push: true
8282
tags: umutphp/php-docker-images-for-ci:8.2-alpine
83+
-
84+
name: Build And Push latest-alpine
85+
uses: docker/build-push-action@v2
86+
with:
87+
context: .
88+
file: ./images/8.2/Dockerfile-alpine
89+
push: true
90+
tags: umutphp/php-docker-images-for-ci:latest-alpine
8391
-
8492
name: Build And Push 7.1
8593
uses: docker/build-push-action@v2
@@ -129,4 +137,11 @@ jobs:
129137
context: ./images/8.2/
130138
push: true
131139
tags: umutphp/php-docker-images-for-ci:8.2
140+
-
141+
name: Build And Push latest
142+
uses: docker/build-push-action@v2
143+
with:
144+
context: ./images/8.2/
145+
push: true
146+
tags: umutphp/php-docker-images-for-ci:latest
132147

build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,15 @@ do
2020
echo "Image is pushed to remote"
2121
echo "********************************************************"
2222
done
23+
24+
#build latest tag
25+
echo "********************************************************"
26+
echo "Building image php:latest
27+
echo "********************************************************"
28+
cd images/8.2/
29+
docker build -t umutphp/php-docker-images-for-ci:latest .
30+
docker push umutphp/php-docker-images-for-ci:latest
31+
cd -
32+
echo "********************************************************"
33+
echo "Image is pushed to remote"
34+
echo "********************************************************"

images/8.1/Dockerfile-alpine

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ RUN mkdir -p /tools/edsonmedina/php_testability && \
128128
RUN composer global config --no-plugins allow-plugins.ergebnis/composer-normalize true && composer global require ergebnis/composer-normalize
129129

130130
# Install infection/infection for mutation testing
131+
RUN apk add --update linux-headers && rm -rf /var/cache/apk/*
131132
RUN pecl install xdebug && docker-php-ext-enable xdebug && docker-php-ext-configure zip && docker-php-ext-install zip
132133
RUN composer global config --no-plugins allow-plugins.infection/extension-installer true && composer global require infection/infection
133134

0 commit comments

Comments
 (0)