Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Publish Docker image for PR

on:
push:
branches:
- master
pull_request:
branches:
- "**"

jobs:
apache:
name: Apache
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/trajano/nextcloud
tags: |
type=ref,event=pr,suffix=-apache
type=raw,value=latest,enable=${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: 32/apache
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
fpm:
name: FPM
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/trajano/nextcloud
tags: |
type=ref,event=pr,suffix=-fpm
type=raw,value=fpm,enable=${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: 32/fpm
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
1 change: 1 addition & 0 deletions 31/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
busybox-static \
bzip2 \
ffmpeg \
libldap-common \
libmagickcore-7.q16-10-extra \
rsync \
Expand Down
1 change: 1 addition & 0 deletions 31/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RUN set -ex; \
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
autoconf \
ffmpeg \
freetype-dev \
gmp-dev \
icu-dev \
Expand Down
1 change: 1 addition & 0 deletions 31/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
busybox-static \
bzip2 \
ffmpeg \
libldap-common \
libmagickcore-7.q16-10-extra \
rsync \
Expand Down
1 change: 1 addition & 0 deletions 32/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
busybox-static \
bzip2 \
ffmpeg \
libldap-common \
libmagickcore-7.q16-10-extra \
rsync \
Expand Down
1 change: 1 addition & 0 deletions 32/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RUN set -ex; \
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
autoconf \
ffmpeg \
freetype-dev \
gmp-dev \
icu-dev \
Expand Down
1 change: 1 addition & 0 deletions 32/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
busybox-static \
bzip2 \
ffmpeg \
libldap-common \
libmagickcore-7.q16-10-extra \
rsync \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN set -ex; \
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
autoconf \
ffmpeg \
freetype-dev \
gmp-dev \
icu-dev \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
busybox-static \
bzip2 \
ffmpeg \
libldap-common \
libmagickcore-7.q16-10-extra \
rsync \
Expand Down