-
Notifications
You must be signed in to change notification settings - Fork 11
82 lines (76 loc) · 2.5 KB
/
registry.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
name: Publish Docker
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * 4'
workflow_dispatch:
jobs:
latest:
runs-on: ubuntu-latest
steps:
- uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Build latest version and publish to GitHub Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: mileschou/composer
tags: "latest,8.3"
username: mileschou
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
dockerfile: 8.3/Dockerfile
platforms: linux/amd64,linux/arm64
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0", "5.6", "5.5"]
steps:
- uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Build PHP ${{ matrix.version }} and publish to GitHub Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: mileschou/composer:${{ matrix.version }}
username: mileschou
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
dockerfile: ${{ matrix.version }}/Dockerfile
platforms: linux/amd64,linux/arm64
latest_v1:
runs-on: ubuntu-latest
steps:
- uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Build latest version and publish to GitHub Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: mileschou/composer
tags: "v1,8.3-v1"
username: mileschou
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
dockerfile: 8.3/v1/Dockerfile
platforms: linux/amd64,linux/arm64
build_v1:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0", "5.6"]
steps:
- uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Build PHP ${{ matrix.version }} and publish to GitHub Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: mileschou/composer:${{ matrix.version }}-v1
username: mileschou
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
dockerfile: ${{ matrix.version }}/v1/Dockerfile
platforms: linux/amd64,linux/arm64
testing:
needs: [latest, build, latest_v1, build_v1]
uses: ./.github/workflows/testing.yml