File tree 3 files changed +14
-5
lines changed
3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 38
38
id : meta
39
39
uses : docker/metadata-action@v4
40
40
with :
41
- images : ${{ github.repository }}
41
+ images : |
42
+ ${{ github.repository }}
43
+ ghcr.io/${{ github.repository }}
42
44
flavor : ' latest=false'
43
45
tags : |
44
46
type=semver,pattern=${{ matrix.php }}-{{version}}
@@ -68,11 +70,18 @@ jobs:
68
70
uses : docker/setup-buildx-action@v3
69
71
70
72
- name : Login to DockerHub
71
- uses : docker/login-action@v2
73
+ uses : docker/login-action@v3
72
74
with :
73
75
username : ${{ secrets.DOCKERHUB_USERNAME }}
74
76
password : ${{ secrets.DOCKERHUB_TOKEN }}
75
77
78
+ - name : Login to GitHub Container Registry
79
+ uses : docker/login-action@v3
80
+ with :
81
+ registry : ghcr.io
82
+ username : ${{ github.repository_owner }}
83
+ password : ${{ secrets.GITHUB_TOKEN }}
84
+
76
85
- name : Build and push
77
86
id : build
78
87
uses : docker/build-push-action@v5
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ FROM php:$PHP_VER-fpm-alpine$OS_VER
5
5
6
6
# -------- Add packages and build/install tools
7
7
8
- COPY --from=mlocati/php-extension-installer:2.1.75 /usr/bin/install-php-extensions /usr/bin/
8
+ COPY --from=mlocati/php-extension-installer:2.7.23 /usr/bin/install-php-extensions /usr/bin/
9
9
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
10
10
RUN apk --no-cache add \
11
11
--repository http://dl-3.alpinelinux.org/alpine/edge/community \
@@ -20,7 +20,7 @@ RUN apk --no-cache add \
20
20
21
21
# -------- Setup composer and runtime environment
22
22
23
- ADD https://getcomposer.org/download/2.1.5 /composer.phar /usr/bin/composer
23
+ COPY --from=composer/composer:2.2.25-bin /composer /usr/bin/composer
24
24
ADD https://curl.se/ca/cacert.pem /etc/cacert.pem
25
25
RUN chmod ugo+rx /usr/bin/composer && \
26
26
chmod ugo+r /etc/supervisord.conf && \
Original file line number Diff line number Diff line change 1
- # dirtsimple/php-server
1
+ # ghcr.io/ dirtsimple/php-server
2
2
3
3
### Overview
4
4
You can’t perform that action at this time.
0 commit comments