Skip to content

Commit

Permalink
Multi-arch build (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil authored Nov 12, 2024
1 parent f063e05 commit e0e1af3
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
40 changes: 40 additions & 0 deletions .github/workflows/multiarch-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Multiarch build

on:
push:
branches:
- '**'
schedule:
# Every month's 2nd on 5:30
- cron: '30 7 2 * *'

jobs:
multiarch-build:
name: Build images
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Buildah Action
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: php-toolassisted
tags: latest
platforms: linux/amd64, linux/arm64
containerfiles: Containerfile

- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
if: github.ref == 'refs/heads/master'
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/wavesoftware
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_PASSWORD }}
1 change: 1 addition & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ FROM quay.io/wavesoftware/php
RUN apt-get update && apt-get install -y \
ffmpeg \
libreoffice \
imagemagick \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
WaveSoftware PHP - Tool Assisted
================================
# WaveSoftware PHP - Tool Assisted

[![Docker Repository on Quay](https://quay.io/repository/wavesoftware/php-toolassisted/status "Docker Repository on Quay")](https://quay.io/repository/wavesoftware/php-toolassisted)
[![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)

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

* ImageMagick
* FFMpeg
* LibreOffice

### Pull:

```shell
$ docker pull quay.io/wavesoftware/php-toolassisted
```

0 comments on commit e0e1af3

Please sign in to comment.