-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.07 KB
/
Copy pathacc.yml
File metadata and controls
43 lines (36 loc) · 1.07 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
name: Custom Build
on:
push:
branches: [ main ]
tags:
- '*'
schedule:
- cron: "0 0 1 * *"
jobs:
build:
strategy:
matrix:
flavor: [ acc ]
php_version: [ '8.4', '8.5' ]
runs-on: ubuntu-latest
env:
DOCKER_IMAGE: elcweb/php:${{ matrix.php_version }}
steps:
- uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to DockerHub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build PHP ${{ matrix.php_version }} - ${{ matrix.flavor }}
id: docker_build
uses: docker/build-push-action@v7
with:
platforms: linux/amd64,linux/arm64
push: true
context: ./${{ matrix.php_version }}/${{ matrix.flavor }}
tags: ${{ env.DOCKER_IMAGE }}-${{ matrix.flavor }}
cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}-${{ matrix.flavor }}
cache-to: type=inline