Compare commits

..

No commits in common. "ffb058bf13f1143cbbf381909b2a2fa381b62786" and "794b422eba1035815b70af471240058739a0be0d" have entirely different histories.

3 changed files with 58 additions and 13 deletions

49
.github/workflows/previous.yml vendored Normal file
View File

@ -0,0 +1,49 @@
# This is a basic workflow to help you get started with Actions
name: Automatic Build
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
tags:
- "25*"
- "26*"
# branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build_previous:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and Publish Tag Docker image
uses: VaultVulp/gp-docker-action@1.6.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }} # Provide GITHUB_TOKEN to login into the GitHub Packages
image-name: nextcloud # Provide only Docker image name
extract-git-tag: true # Provide flag to extract Docker image tag from git reference
custom-args: --platform=linux/arm64,linux/amd64
# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v3
#
# # Runs a single command using the runners shell
# - name: Run a one-line script
# run: echo Hello, world!
#
# # Runs a set of commands using the runners shell
# - name: Run a multi-line script
# run: |
# echo Add other actions to build,
# echo test, and deploy your project.

View File

@ -1,24 +1,21 @@
# This is a basic workflow to help you get started with Actions # This is a basic workflow to help you get started with Actions
name: Daily build name: Weekly build
env: env:
NEXTCLOUD_UPSTREAM_VERSION: 28.0.6 NEXTCLOUD_UPSTREAM_VERSION: 27.1.9
IMAGE_MAJOR_VERSION: 28 IMAGE_MAJOR_VERSION: 27
# Controls when the workflow will run # Controls when the workflow will run
on: on:
schedule: schedule:
- cron: "39 20 * * *" - cron: "39 20 * * 3"
push:
tags:
- "*"
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: weekly_build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -35,7 +32,7 @@ jobs:
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5 - uses: docker/build-push-action@v5
name: Daily build of ${{ env.IMAGE_MAJOR_VERSION }}.x name: Weekly build
with: with:
context: . context: .
push: true push: true

View File

@ -1,11 +1,10 @@
# nextcloud-previews ![`latest` version](https://img.shields.io/github/v/tag/0ranki/nextcloud-previews) [![Automatic Build](https://github.com/0ranki/nextcloud-previews/actions/workflows/daily.yml/badge.svg)](https://github.com/0ranki/nextcloud-previews/actions/workflows/weekly.yml) # nextcloud-previews
## Nextcloud container with preinstalled video preview generation ## Nextcloud container with preinstalled video preview generation
These are container images built using the official Nextcloud Apache images as These are container images built using the official Nextcloud Apache images as
source, adding the required packages to generate video previews. source, adding the required packages to generate video previews.
Images are built daily using GitHub Actions. A weekly build runs from the master branch. [![Automatic Build](https://github.com/0ranki/nextcloud-previews/actions/workflows/daily.yml/badge.svg)](https://github.com/0ranki/nextcloud-previews/actions/workflows/weekly.yml)
I strongly recommend using a specific major version in your docker-compose, kube YAML files or scripts. This will avoid accidentally updating your instance. I strongly recommend using a specific major version in your docker-compose, kube YAML files or scripts. This will avoid accidentally updating your instance.
@ -26,7 +25,7 @@ and https://docs.nextcloud.com/.
Simply use `ghcr.io/0ranki/nextcloud-previews:<version>` Simply use `ghcr.io/0ranki/nextcloud-previews:<version>`
instead of `docker.io/library/nextcloud`. instead of `docker.io/library/nextcloud`.
### `latest` currently points to 28.0.x ### `latest` currently points to 27.1.x
To pull e.g. version 27.1.4: To pull e.g. version 27.1.4:
``` ```