Skip to content

Commit e0e1af3

Browse files
authored
Multi-arch build (#1)
1 parent f063e05 commit e0e1af3

File tree

4 files changed

+61
-3
lines changed

4 files changed

+61
-3
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
charset = utf-8
11+
indent_style = space
12+
indent_size = 2
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Multiarch build
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
schedule:
8+
# Every month's 2nd on 5:30
9+
- cron: '30 7 2 * *'
10+
11+
jobs:
12+
multiarch-build:
13+
name: Build images
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install qemu dependency
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y qemu-user-static
22+
- name: Buildah Action
23+
id: build-image
24+
uses: redhat-actions/buildah-build@v2
25+
with:
26+
image: php-toolassisted
27+
tags: latest
28+
platforms: linux/amd64, linux/arm64
29+
containerfiles: Containerfile
30+
31+
- name: Push To quay.io
32+
id: push-to-quay
33+
uses: redhat-actions/push-to-registry@v2
34+
if: github.ref == 'refs/heads/master'
35+
with:
36+
image: ${{ steps.build-image.outputs.image }}
37+
tags: ${{ steps.build-image.outputs.tags }}
38+
registry: quay.io/wavesoftware
39+
username: ${{ secrets.QUAY_USER }}
40+
password: ${{ secrets.QUAY_PASSWORD }}

Containerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ FROM quay.io/wavesoftware/php
22
RUN apt-get update && apt-get install -y \
33
ffmpeg \
44
libreoffice \
5+
imagemagick \
56
--no-install-recommends \
67
&& rm -rf /var/lib/apt/lists/*

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
WaveSoftware PHP - Tool Assisted
2-
================================
1+
# WaveSoftware PHP - Tool Assisted
32

4-
[![Docker Repository on Quay](https://quay.io/repository/wavesoftware/php-toolassisted/status "Docker Repository on Quay")](https://quay.io/repository/wavesoftware/php-toolassisted)
3+
[![Multiarch build](https://github.com/wavesoftware/container-php-toolassisted/actions/workflows/multiarch-build.yaml/badge.svg)](https://github.com/wavesoftware/container-php-toolassisted/actions/workflows/multiarch-build.yaml)
54

65
A PHP fpm distribution used by WaveSoftware PHP hosts with additional command line tools:
76

87
* ImageMagick
98
* FFMpeg
109
* LibreOffice
10+
11+
### Pull:
12+
13+
```shell
14+
$ docker pull quay.io/wavesoftware/php-toolassisted
15+
```

0 commit comments

Comments
 (0)