This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
86 lines (83 loc) · 2.77 KB
/
php80.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: PHP 8.0 - Nightly Builds
on:
push:
branches:
- master
paths:
- .github/workflows/php80.yml
- '8.0-dev/**'
pull_request:
paths:
- .github/workflows/php80.yml
- '8.0-dev/**'
schedule:
- cron: '0 0 * * *'
jobs:
build-alpine:
name: Build Alpine images
runs-on: ubuntu-latest
strategy:
matrix:
alpine: ['alpine3.14', 'alpine3.15']
sapi: ['cli', 'fpm']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: |
echo "tag_generic_version=phpdaily/php:8.0" >> $GITHUB_ENV
echo "tag_short_platform=phpdaily/php:8.0-alpine" >> $GITHUB_ENV
if: ${{ matrix.alpine == 'alpine3.15' && matrix.sapi == 'cli' }}
- run: echo "tag_generic_platform=phpdaily/php:8.0-${{ matrix.alpine }}" >> $GITHUB_ENV
if: ${{ matrix.sapi == 'cli' }}
- name: Build
uses: docker/build-push-action@v2
with:
context: 8.0-dev/${{ matrix.alpine }}/${{ matrix.sapi }}
no-cache: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
phpdaily/php:8.0-${{ matrix.sapi }}-${{ matrix.alpine }}
${{ env.tag_generic_version }}
${{ env.tag_short_platform }}
${{ env.tag_generic_platform }}
build-ubuntu:
name: Build Ubuntu images
runs-on: ubuntu-latest
strategy:
matrix:
ubuntu: ['buster', 'bullseye']
sapi: ['apache', 'cli', 'fpm', "zts"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: echo "tag_generic_platform=phpdaily/php:8.0-${{ matrix.ubuntu }}" >> $GITHUB_ENV
if: ${{ matrix.sapi == 'cli' }}
- name: Build
uses: docker/build-push-action@v2
with:
context: 8.0-dev/${{ matrix.ubuntu }}/${{ matrix.sapi }}
no-cache: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
phpdaily/php:8.0-${{ matrix.sapi }}-${{ matrix.ubuntu }}
${{ env.tag_generic_platform }}