-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (58 loc) · 1.63 KB
/
php-83.yml
File metadata and controls
60 lines (58 loc) · 1.63 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
name: PHP 8.3
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 8.3/**
release:
types: [ published ]
jobs:
push_to_registry:
strategy:
matrix:
image:
- name: "[8.3][base]"
target: "base"
context: 8.3
tags: |
jopplt/php:8.3-fpm-base
build-args: |
COMPOSER_VERSION=2.7.7
platforms: linux/amd64,linux/arm64
- name: "[8.3][dev]"
target: "dev"
context: 8.3
tags: |
jopplt/php:8.3-fpm-dev
build-args: |
COMPOSER_VERSION=2.7.7
platforms: linux/amd64,linux/arm64
fail-fast: true
runs-on: ubuntu-22.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@v6
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 }}
cache-from: type=gha
cache-to: type=gha,mode=max