feat(container): update ghcr.io/erhardtconsulting/base-php docker tag (8.3.13 → 8.4.1) #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Nextcloud: Build Docker Image / Pull Request" | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'nextcloud/**' | |
permissions: | |
contents: read | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
env: | |
IMAGE_NAME: "nextcloud" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up QEMU for multi-architecture build | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3 | |
with: | |
platforms: all | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3 | |
with: | |
install: true | |
- name: Extract NEXTCLOUD_VERSION from Dockerfile | |
id: vars | |
run: | | |
NEXTCLOUD_VERSION=$(grep -E '^ARG NEXTCLOUD_VERSION=' nextcloud/Dockerfile | cut -d '=' -f 2 | tr -d '"') | |
echo "NEXTCLOUD_VERSION=$NEXTCLOUD_VERSION" >> $GITHUB_ENV | |
- name: Build Docker image | |
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6 | |
with: | |
context: nextcloud | |
platforms: "linux/386,linux/amd64,linux/arm64,linux/arm/v7" | |
push: false | |
tags: | | |
ghcr.io/erhardtconsulting/${{ env.IMAGE_NAME }}:dev-${{ env.NEXTCLOUD_VERSION }} |