@@ -178,3 +178,84 @@ jobs:
178178 # ghcr.io/${{steps.script.outputs.github_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended-${{steps.script.outputs.build_date_numeric}}.${{steps.script.outputs.commit_hash}}
179179 # ghcr.io/${{steps.script.outputs.github_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
180180 # quay.io/${{steps.script.outputs.redhat_quay_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
181+
182+ php8_3_nginx_extended :
183+ runs-on : ubuntu-latest
184+ steps :
185+ - name : Checkout
186+ uses : actions/checkout@v2
187+
188+ - name : Shell-Script
189+ id : script
190+ run : |
191+ BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
192+ BUILD_DATE_NUMERIC="${BUILD_DATE//[^[:digit:]]/}"
193+ COMMIT_HASH=${GITHUB_SHA::8}
194+ GITHUB_REPO=${GITHUB_REPOSITORY,,}
195+ GITHUB_REPO_SHORT=${GITHUB_REPO#*/}
196+ GITHUB_REPO_SHORT=${GITHUB_REPO_SHORT#"docker-"}
197+ DOCKER_REPO=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPO_SHORT}
198+ REDHAT_QUAY_REPO=${{ secrets.REDHAT_QUAY_USERNAME }}/${GITHUB_REPO_SHORT}
199+
200+ PHP_VERSION="8.3"
201+
202+ # Set output parameters to github action.
203+ echo ::set-output name=build_date::${BUILD_DATE}
204+ echo ::set-output name=build_date_numeric::${BUILD_DATE_NUMERIC}
205+ echo ::set-output name=commit_hash::${COMMIT_HASH}
206+ echo ::set-output name=github_repo::${GITHUB_REPO}
207+ echo ::set-output name=docker_repo::${DOCKER_REPO}
208+ echo ::set-output name=redhat_quay_repo::${REDHAT_QUAY_REPO}
209+
210+ echo ::set-output name=php_version::${PHP_VERSION}
211+
212+ - name : Set up QEMU
213+ id : qemu
214+ uses : docker/setup-qemu-action@v1
215+ with :
216+ image : tonistiigi/binfmt:latest
217+ platforms : all
218+
219+ - name : Set up Docker Buildx
220+ id : buildx
221+ uses : docker/setup-buildx-action@master
222+
223+ # - name: Login to GitHub Container Registry
224+ # uses: docker/login-action@v1
225+ # with:
226+ # registry: ghcr.io
227+ # username: ${{ github.repository_owner }}
228+ # password: ${{ secrets.GITHUB_TOKEN }}
229+
230+ - name : Login to DockerHub
231+ uses : docker/login-action@v1
232+ with :
233+ registry : docker.io
234+ username : ${{ secrets.DOCKER_USERNAME }}
235+ password : ${{ secrets.DOCKER_PASSWORD }}
236+
237+ # - name: Login to RED HAT Quay.io Container Registry
238+ # uses: docker/login-action@v1
239+ # with:
240+ # registry: quay.io
241+ # username: ${{ secrets.REDHAT_QUAY_USERNAME }}
242+ # password: ${{ secrets.REDHAT_QUAY_PASSWORD }}
243+
244+ - name : Build-extended
245+ uses : docker/build-push-action@v2
246+ with :
247+ builder : ${{ steps.buildx.outputs.name }}
248+ context : .
249+ file : ./alpine.fpm_nginx.extended.Dockerfile
250+ platforms : linux/amd64,linux/arm64/v8,linux/arm/v7
251+ pull : true
252+ push : true
253+ build-args : |
254+ BUILD_DATE=${{steps.script.outputs.build_date}}
255+ VCS_REF=${{steps.script.outputs.commit_hash}}
256+ PHP_VERSION=${{steps.script.outputs.php_version}}
257+ tags : |
258+ docker.io/${{steps.script.outputs.docker_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
259+ # ghcr.io/${{steps.script.outputs.github_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended-${{steps.script.outputs.build_date_numeric}}.${{steps.script.outputs.commit_hash}}
260+ # ghcr.io/${{steps.script.outputs.github_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
261+ # quay.io/${{steps.script.outputs.redhat_quay_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
0 commit comments