Compare commits

..

4 Commits

Author SHA1 Message Date
Jarno Rankinen ffb058bf13 Run build daily
- Images built daily
2024-06-07 20:41:46 +03:00
Jarno Rankinen ac915fe94f Added badge showing latest tagged version 2024-06-07 20:18:29 +03:00
Jarno Rankinen 9cd3f8e205 28.0.6 2024-06-07 19:54:36 +03:00
Jarno Rankinen 3cb521d768 27.1.10 2024-06-07 19:49:44 +03:00
3 changed files with 13 additions and 58 deletions

View File

@ -1,21 +1,24 @@
# 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: Weekly build name: Daily build
env: env:
NEXTCLOUD_UPSTREAM_VERSION: 27.1.9 NEXTCLOUD_UPSTREAM_VERSION: 28.0.6
IMAGE_MAJOR_VERSION: 27 IMAGE_MAJOR_VERSION: 28
# Controls when the workflow will run # Controls when the workflow will run
on: on:
schedule: schedule:
- cron: "39 20 * * 3" - cron: "39 20 * * *"
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:
weekly_build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -32,7 +35,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: Weekly build name: Daily build of ${{ env.IMAGE_MAJOR_VERSION }}.x
with: with:
context: . context: .
push: true push: true

View File

@ -1,49 +0,0 @@
# 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,10 +1,11 @@
# nextcloud-previews # 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 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.
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) Images are built daily using GitHub Actions.
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.
@ -25,7 +26,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 27.1.x ### `latest` currently points to 28.0.x
To pull e.g. version 27.1.4: To pull e.g. version 27.1.4:
``` ```