-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.28 KB
/
rebuild-dev-image.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
on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
name: Rebuild PHP Image for branches
jobs:
rebuild-php-images:
name: Rebuild ${{ matrix.branches }} branch
runs-on: ubuntu-22.04
strategy:
matrix:
branches: ['13.0', '14.0', '15.0']
fail-fast: false
permissions:
contents: read
steps:
- name: GIT checkout branch - refs/heads/${{ matrix.branches }}
uses: actions/checkout@v4
with:
ref: refs/heads/${{ matrix.branches }}
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v2
- name: Build PHP-FPM image and push it to DockerHub
run: |
TAG=shopsys/php-image:${{ matrix.branches }}
docker buildx build --push --tag ${TAG} --no-cache --platform linux/arm64,linux/amd64 --compress -f ./Dockerfile .