27.1.4, updated build action
- Uses docker/build-push-action running on QEMU with docker/setup-qemu-action - Image name changed, dropped the /nextcloud from the end. New images will be available as ghcr.io/0ranki/nextcloud-previews:<tag> - Old image name still works, will stop pushing them at some point
This commit is contained in:
parent
01041ac5eb
commit
6f936616dc
|
@ -19,14 +19,29 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Daily build
|
||||
uses: VaultVulp/gp-docker-action@1.6.0
|
||||
- name: Checkout
|
||||
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: Login to ghcr.io
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
image-name: nextcloud
|
||||
extract-git-tag: false
|
||||
additional-image-tags: ${{ env.IMAGE_MAJOR_VERSION }} ${{ env.NEXTCLOUD_UPSTREAM_VERSION }}
|
||||
custom-args: --platform=linux/arm64,linux/amd64 --build-arg="NEXTCLOUD_UPSTREAM_VERSION=${{ env.NEXTCLOUD_UPSTREAM_VERSION }}"
|
||||
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: docker/build-push-action@v5
|
||||
name: Daily build
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
build-args: NEXTCLOUD_UPSTREAM_VERSION=${{ env.NEXTCLOUD_UPSTREAM_VERSION }}
|
||||
tags: |
|
||||
ghcr.io/0ranki/nextcloud-previews/nextcloud:${{ env.NEXTCLOUD_UPSTREAM_VERSION }}
|
||||
ghcr.io/0ranki/nextcloud-previews/nextcloud:${{ env.IMAGE_MAJOR_VERSION }}
|
||||
ghcr.io/0ranki/nextcloud-previews/nextcloud:latest
|
||||
ghcr.io/0ranki/nextcloud-previews:${{ env.NEXTCLOUD_UPSTREAM_VERSION }}
|
||||
ghcr.io/0ranki/nextcloud-previews:${{ env.IMAGE_MAJOR_VERSION }}
|
||||
ghcr.io/0ranki/nextcloud-previews:latest
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
ARG NEXTCLOUD_UPSTREAM_VERSION=27.1.3
|
||||
|
||||
ARG NEXTCLOUD_UPSTREAM_VERSION
|
||||
FROM docker.io/library/nextcloud:${NEXTCLOUD_UPSTREAM_VERSION}
|
||||
|
||||
RUN apt-get update && \
|
||||
|
|
|
@ -111,7 +111,7 @@ spec:
|
|||
|
||||
- name: app
|
||||
## Remember to change cron container version!
|
||||
image: ghcr.io/0ranki/nextcloud-previews/nextcloud:latest
|
||||
image: ghcr.io/0ranki/nextcloud-previews:latest
|
||||
## Remember to change cron container version!
|
||||
#imagePullPolicy: never
|
||||
ports:
|
||||
|
@ -134,7 +134,7 @@ spec:
|
|||
|
||||
- name: cron
|
||||
# Remember to change main image version!
|
||||
image: ghcr.io/0ranki/nextcloud-previews/nextcloud:latest
|
||||
image: ghcr.io/0ranki/nextcloud-previews:latest
|
||||
# Remember to change main image version!
|
||||
#imagePullPolicy: never
|
||||
args:
|
||||
|
|
Loading…
Reference in New Issue