-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (71 loc) · 2.1 KB
/
php-74.yml
File metadata and controls
73 lines (71 loc) · 2.1 KB
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
name: PHP 7.4
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 7.4/**
release:
types: [ published ]
jobs:
push_to_registry:
strategy:
matrix:
image:
- name: "[7.4][min]"
target: "min"
context: 7.4
tags: |
jopplt/php:7.4-fpm-min
build-args: ""
platforms: linux/amd64,linux/arm64,linux/ppc64le
- name: "[7.3][base]"
target: "base"
context: 7.4
tags: |
jopplt/php:7.4-fpm-base
build-args: |
COMPOSER_VERSION=2.7.1
platforms: linux/amd64,linux/arm64,linux/ppc64le
- name: "[7.4][newrelic]"
target: "newrelic"
context: 7.4
tags: |
jopplt/php:7.4-fpm-newrelic
build-args: |
NEW_RELIC_AGENT_VERSION=10.18.0.8
platforms: linux/amd64,linux/arm64,linux/ppc64le
- name: "[7.4][dev]"
target: "dev"
context: 7.4
tags: |
jopplt/php:7.4-fpm-dev
build-args: |
COMPOSER_VERSION=2.7.1
platforms: linux/amd64,linux/arm64,linux/ppc64le
fail-fast: true
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: "${{ matrix.image.name }}"
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: ${{ matrix.image.context }}
target: ${{ matrix.image.target }}
platforms: ${{ matrix.image.platforms }}
push: true
tags: ${{ matrix.image.tags }}
build-args: ${{ matrix.image.build-args }}