forked from jakubsacha/symfony-docker
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (39 loc) · 1.12 KB
/
build.yaml
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
name: Build
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 12 * * 1'
jobs:
build:
name: 'Build and push containers'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '^(8\.1)(\.\d+)?-apache$'
- '^(8\.2)(\.\d+)?-apache$'
- '^(8\.3)(\.\d+)?-apache$'
- '^(8\.1)(\.\d+)?-fpm$'
- '^(8\.2)(\.\d+)?-fpm$'
- '^(8\.3)(\.\d+)?-fpm$'
steps:
- name: Setup multi-architecture support
run: 'docker run --rm --privileged multiarch/qemu-user-static --reset -p yes'
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Yarn install
run: yarn
- name: Yarn start
run: 'yarn start "${{ matrix.php }}" "linux/amd64,linux/arm64"'
env:
INPUT_TOKEN: ${{ secrets.GITHUB_TOKEN }}