fix(ci/cd): Stable imagage used latest as a base #3

Merged
jiriks74 merged 1 commits from fix-bad-image-base into main 2024-04-29 04:32:49 +02:00
3 changed files with 10 additions and 7 deletions

@ -52,8 +52,9 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: jiriks74/nextcloud-extended:${{ steps.extract-version.outputs.version }},jiriks74/nextcloud-extended:latest
platforms: linux/amd64,linux/arm64
context: .
file: ./Dockerfile
context: .
build-args: NEXTCLOUD_VERSION=${{ steps.extract-version.outputs.version }}
platforms: linux/amd64,linux/arm64
tags: jiriks74/nextcloud-extended:${{ steps.extract-version.outputs.version }},jiriks74/nextcloud-extended:latest

@ -55,8 +55,9 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: jiriks74/nextcloud-extended:${{ steps.extract-version.outputs.version }},jiriks74/nextcloud-extended:${{ steps.extract-version.outputs.version-major }},jiriks74/nextcloud-extended:stable
platforms: linux/amd64,linux/arm64
context: .
file: ./Dockerfile
context: .
build-args: NEXTCLOUD_VERSION=${{ steps.extract-version.outputs.version }}
platforms: linux/amd64,linux/arm64
tags: jiriks74/nextcloud-extended:${{ steps.extract-version.outputs.version }},jiriks74/nextcloud-extended:${{ steps.extract-version.outputs.version-major }},jiriks74/nextcloud-extended:stable

@ -1,4 +1,5 @@
FROM nextcloud:latest
ARG NEXTCLOUD_VERSION
FROM nextcloud:${NEXTCLOUD_VERSION}
LABEL maintainer="Jiří Štefka <jiri@stefka.eu>"
RUN apt update && apt upgrade -y --no-install-recommends && apt install gnupg2 ffmpeg aria2 libmagickcore-dev -y --no-install-recommends