nextcloud-previews/.github/workflows/weekly.yml

48 lines
1.5 KiB
YAML
Raw Normal View History

# This is a basic workflow to help you get started with Actions
2024-04-06 11:17:06 +03:00
name: Weekly build
env:
2024-04-06 11:13:44 +03:00
NEXTCLOUD_UPSTREAM_VERSION: 27.1.8
IMAGE_MAJOR_VERSION: 27
# Controls when the workflow will run
on:
schedule:
2024-04-06 10:46:24 +03:00
- cron: "39 20 * * 3"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
2024-04-06 11:15:15 +03:00
weekly_build:
runs-on: ubuntu-latest
steps:
- 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:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
2024-04-06 11:15:15 +03:00
name: Weekly 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