Skip to content

Commit b5e17a0

Browse files
authored
Merge pull request #73 from laradock/fix-ci
Fix ci
2 parents 972bd81 + 882bc1a commit b5e17a0

File tree

2 files changed

+60
-3
lines changed

2 files changed

+60
-3
lines changed

.github/workflows/dockerpublish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
php_version: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
17+
php_version: ["8.1", "8.2", "8.3", "8.4"]
1818
continue-on-error: true
1919
steps:
2020
- name: Checkout
@@ -31,7 +31,7 @@ jobs:
3131
tags: |
3232
type=schedule,pattern={{date 'YYYYMMDD'}}
3333
type=ref,event=tag
34-
type=ref,event=branch
34+
type=ref,event=branch
3535
type=semver,pattern={{version}}
3636
type=raw,value=latest
3737
@@ -52,6 +52,6 @@ jobs:
5252
uses: docker/build-push-action@v5
5353
with:
5454
file: Dockerfile-${{ matrix.php_version }}
55-
platforms: linux/amd64, linux/386, linux/arm64
55+
platforms: linux/amd64, linux/arm/v7, linux/arm64
5656
push: ${{ (github.event_name != 'pull_request') && (github.repository == 'laradock/workspace') && (github.ref == 'refs/heads/master') }}
5757
tags: ${{ steps.meta.outputs.tags }}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: '**'
6+
tags: '**'
7+
pull_request:
8+
branches: '**'
9+
schedule:
10+
- cron: 0 0 * * 6
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
php_version: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0"]
18+
continue-on-error: true
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Docker meta
24+
id: meta
25+
uses: docker/metadata-action@v5
26+
with:
27+
images:
28+
laradock/workspace
29+
flavor: |
30+
suffix=-${{ matrix.php_version }}
31+
tags: |
32+
type=schedule,pattern={{date 'YYYYMMDD'}}
33+
type=ref,event=tag
34+
type=ref,event=branch
35+
type=semver,pattern={{version}}
36+
type=raw,value=latest
37+
38+
- name: Set up QEMU
39+
uses: docker/setup-qemu-action@v3
40+
41+
- name: Set up Docker Buildx
42+
uses: docker/setup-buildx-action@v3
43+
44+
- name: Login to Docker Hub
45+
if: ${{ (github.repository == 'laradock/workspace') && (github.ref == 'refs/heads/master') }}
46+
uses: docker/login-action@v2
47+
with:
48+
username: ${{ secrets.DOCKER_HUB_USER }}
49+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
50+
51+
- name: Build and push
52+
uses: docker/build-push-action@v5
53+
with:
54+
file: Dockerfile-${{ matrix.php_version }}
55+
platforms: linux/amd64, linux/386, linux/arm64
56+
push: ${{ (github.event_name != 'pull_request') && (github.repository == 'laradock/workspace') && (github.ref == 'refs/heads/master') }}
57+
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)