@@ -17,168 +17,6 @@ defaults:
1717 shell : bash
1818
1919jobs :
20- php8_1_nginx_extended :
21- runs-on : ubuntu-latest
22- steps :
23- - name : Checkout
24- uses : actions/checkout@v2
25-
26- - name : Shell-Script
27- id : script
28- run : |
29- BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
30- BUILD_DATE_NUMERIC="${BUILD_DATE//[^[:digit:]]/}"
31- COMMIT_HASH=${GITHUB_SHA::8}
32- GITHUB_REPO=${GITHUB_REPOSITORY,,}
33- GITHUB_REPO_SHORT=${GITHUB_REPO#*/}
34- GITHUB_REPO_SHORT=${GITHUB_REPO_SHORT#"docker-"}
35- DOCKER_REPO=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPO_SHORT}
36- REDHAT_QUAY_REPO=${{ secrets.REDHAT_QUAY_USERNAME }}/${GITHUB_REPO_SHORT}
37-
38- PHP_VERSION="8.1"
39-
40- # Set output parameters to github action.
41- echo ::set-output name=build_date::${BUILD_DATE}
42- echo ::set-output name=build_date_numeric::${BUILD_DATE_NUMERIC}
43- echo ::set-output name=commit_hash::${COMMIT_HASH}
44- echo ::set-output name=github_repo::${GITHUB_REPO}
45- echo ::set-output name=docker_repo::${DOCKER_REPO}
46- echo ::set-output name=redhat_quay_repo::${REDHAT_QUAY_REPO}
47-
48- echo ::set-output name=php_version::${PHP_VERSION}
49-
50- - name : Set up QEMU
51- id : qemu
52- uses : docker/setup-qemu-action@v1
53- with :
54- image : tonistiigi/binfmt:latest
55- platforms : all
56-
57- - name : Set up Docker Buildx
58- id : buildx
59- uses : docker/setup-buildx-action@master
60-
61- # - name: Login to GitHub Container Registry
62- # uses: docker/login-action@v1
63- # with:
64- # registry: ghcr.io
65- # username: ${{ github.repository_owner }}
66- # password: ${{ secrets.GITHUB_TOKEN }}
67-
68- - name : Login to DockerHub
69- uses : docker/login-action@v1
70- with :
71- registry : docker.io
72- username : ${{ secrets.DOCKER_USERNAME }}
73- password : ${{ secrets.DOCKER_PASSWORD }}
74-
75- # - name: Login to RED HAT Quay.io Container Registry
76- # uses: docker/login-action@v1
77- # with:
78- # registry: quay.io
79- # username: ${{ secrets.REDHAT_QUAY_USERNAME }}
80- # password: ${{ secrets.REDHAT_QUAY_PASSWORD }}
81-
82- - name : Build-extended
83- uses : docker/build-push-action@v2
84- with :
85- builder : ${{ steps.buildx.outputs.name }}
86- context : .
87- file : ./alpine.fpm_nginx.extended.Dockerfile
88- platforms : linux/amd64,linux/arm64/v8,linux/arm/v7
89- pull : true
90- push : true
91- build-args : |
92- BUILD_DATE=${{steps.script.outputs.build_date}}
93- VCS_REF=${{steps.script.outputs.commit_hash}}
94- PHP_VERSION=${{steps.script.outputs.php_version}}
95- tags : |
96- docker.io/${{steps.script.outputs.docker_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
97- # 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}}
98- # ghcr.io/${{steps.script.outputs.github_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
99- # quay.io/${{steps.script.outputs.redhat_quay_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
100-
101- php8_2_nginx_extended :
102- runs-on : ubuntu-latest
103- steps :
104- - name : Checkout
105- uses : actions/checkout@v2
106-
107- - name : Shell-Script
108- id : script
109- run : |
110- BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
111- BUILD_DATE_NUMERIC="${BUILD_DATE//[^[:digit:]]/}"
112- COMMIT_HASH=${GITHUB_SHA::8}
113- GITHUB_REPO=${GITHUB_REPOSITORY,,}
114- GITHUB_REPO_SHORT=${GITHUB_REPO#*/}
115- GITHUB_REPO_SHORT=${GITHUB_REPO_SHORT#"docker-"}
116- DOCKER_REPO=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPO_SHORT}
117- REDHAT_QUAY_REPO=${{ secrets.REDHAT_QUAY_USERNAME }}/${GITHUB_REPO_SHORT}
118-
119- PHP_VERSION="8.2"
120-
121- # Set output parameters to github action.
122- echo ::set-output name=build_date::${BUILD_DATE}
123- echo ::set-output name=build_date_numeric::${BUILD_DATE_NUMERIC}
124- echo ::set-output name=commit_hash::${COMMIT_HASH}
125- echo ::set-output name=github_repo::${GITHUB_REPO}
126- echo ::set-output name=docker_repo::${DOCKER_REPO}
127- echo ::set-output name=redhat_quay_repo::${REDHAT_QUAY_REPO}
128-
129- echo ::set-output name=php_version::${PHP_VERSION}
130-
131- - name : Set up QEMU
132- id : qemu
133- uses : docker/setup-qemu-action@v1
134- with :
135- image : tonistiigi/binfmt:latest
136- platforms : all
137-
138- - name : Set up Docker Buildx
139- id : buildx
140- uses : docker/setup-buildx-action@master
141-
142- # - name: Login to GitHub Container Registry
143- # uses: docker/login-action@v1
144- # with:
145- # registry: ghcr.io
146- # username: ${{ github.repository_owner }}
147- # password: ${{ secrets.GITHUB_TOKEN }}
148-
149- - name : Login to DockerHub
150- uses : docker/login-action@v1
151- with :
152- registry : docker.io
153- username : ${{ secrets.DOCKER_USERNAME }}
154- password : ${{ secrets.DOCKER_PASSWORD }}
155-
156- # - name: Login to RED HAT Quay.io Container Registry
157- # uses: docker/login-action@v1
158- # with:
159- # registry: quay.io
160- # username: ${{ secrets.REDHAT_QUAY_USERNAME }}
161- # password: ${{ secrets.REDHAT_QUAY_PASSWORD }}
162-
163- - name : Build-extended
164- uses : docker/build-push-action@v2
165- with :
166- builder : ${{ steps.buildx.outputs.name }}
167- context : .
168- file : ./alpine.fpm_nginx.extended.Dockerfile
169- platforms : linux/amd64,linux/arm64/v8,linux/arm/v7
170- pull : true
171- push : true
172- build-args : |
173- BUILD_DATE=${{steps.script.outputs.build_date}}
174- VCS_REF=${{steps.script.outputs.commit_hash}}
175- PHP_VERSION=${{steps.script.outputs.php_version}}
176- tags : |
177- docker.io/${{steps.script.outputs.docker_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
178- # 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}}
179- # ghcr.io/${{steps.script.outputs.github_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
180- # quay.io/${{steps.script.outputs.redhat_quay_repo}}:${{steps.script.outputs.php_version}}-fpm-nginx-alpine-extended
181-
18220 php8_3_nginx_extended :
18321 runs-on : ubuntu-latest
18422 steps :
0 commit comments