Fix cron and codeberg registry not working
Some checks failed
/ Build image (push) Failing after 4s

This commit is contained in:
Marko Korhonen 2024-02-25 00:24:46 +02:00
parent 231fa4e93e
commit c7f57d578d
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -1,12 +1,12 @@
on: on:
push: push:
schedule: schedule:
- cron: '0 * * * *' - cron: '0 23 * * *'
jobs: jobs:
build_image: build_image:
name: Build image name: Build image
env: env:
VERSION: 1.21 FORGEJO_VERSION: 1.21
SCHEDULED: ${{ github.event_name == 'schedule' }} SCHEDULED: ${{ github.event_name == 'schedule' }}
PUSHED: ${{ github.event_name == 'push' }} PUSHED: ${{ github.event_name == 'push' }}
REGISTRY: git.korhonen.cc REGISTRY: git.korhonen.cc
@ -16,7 +16,7 @@ jobs:
- name: Check if update available - name: Check if update available
if: env.SCHEDULED if: env.SCHEDULED
id: check id: check
uses: https://github.com/lucacome/docker-image-update-checker@v1 uses: https://github.com/giggio/docker-image-update-checker@v2
with: with:
base-image: codeberg.org/forgejo/forgejo:${{ env.FORGEJO_VERSION }} base-image: codeberg.org/forgejo/forgejo:${{ env.FORGEJO_VERSION }}
image: ${{ env.REPO }}:latest image: ${{ env.REPO }}:latest