38 lines
972 B
YAML
38 lines
972 B
YAML
name: Check docker image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
schedule:
|
|
- cron: '0 6 * * *'
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Login to Gitea
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.crovaxon.de
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASS }}
|
|
if: steps.check.outputs.needs-updating == 'true'
|
|
|
|
- name: Check if update available
|
|
id: check
|
|
uses: lucacome/docker-image-update-checker@v1
|
|
with:
|
|
base-image: node:20-alpine
|
|
image: gitea.crovaxon.de/crovaxon/foundryvtt-docker:latest
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: gitea.crovaxon.de/crovaxon/foundryvtt-docker
|
|
if: steps.check.outputs.needs-updating == 'true' |