This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add multiple PHP versions, including version 8 (#9)
- Loading branch information
Showing
6 changed files
with
113 additions
and
69 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,23 @@ | ||
name: Tag Released Images | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: ['7', '7.4', '8', '8.0'] | ||
steps: | ||
- id: push | ||
run: echo ::set-output name=sha::sha-${GITHUB_SHA:0:7}-${{ matrix.php }} | ||
- name: Publish Tag | ||
uses: shrink/actions-docker-registry-tag@v1 | ||
with: | ||
registry: ghcr.io | ||
token: ${{ secrets.GHCR_PAT }} | ||
repository: ${{ github.repository }} | ||
target: ${{ steps.push.outputs.sha }} | ||
tags: ${{ matrix.php }} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM php:7.4.10-fpm-alpine3.12 | ||
ARG PHP=8.0 | ||
ARG ALPINE=3.12 | ||
|
||
FROM php:${PHP}-fpm-alpine${ALPINE} | ||
|
||
LABEL Maintainer="Samuel Ryan <[email protected]>" | ||
|
||
RUN apk --no-cache add fcgi busybox nginx tini | ||
ARG NGINX=~1.18 | ||
RUN apk --no-cache add fcgi busybox nginx=$NGINX tini | ||
|
||
COPY config/nginx.conf /etc/nginx/nginx.conf | ||
COPY config/fastcgi.conf /etc/nginx/fastcgi.conf | ||
|
@@ -20,5 +24,5 @@ COPY ./entrypoint.sh / | |
|
||
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] | ||
|
||
HEALTHCHECK --interval=2s --timeout=1s --retries=3 \ | ||
HEALTHCHECK --interval=10s --timeout=1s --retries=3 \ | ||
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:8080/.container/status || exit 1 |
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