auto-update images

This commit is contained in:
tawoe 2025-05-07 14:33:39 +02:00
parent 86e33a7f04
commit fc2463a14b
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,31 @@
name: Regular base image update check
on:
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Docker Image Update Checker
id: baseupdatecheck
uses: lucacome/docker-image-update-checker@v2.0.0
with:
base-image: jetty:9.4-jdk11-alpine
image: tawoe/obp-api
- name: Trigger build_container_develop_branch workflow
uses: actions/github-script@v6
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build_container_develop_branch.yml',
ref: 'refs/heads/develop'
});
if: steps.baseupdatecheck.outputs.needs-updating == 'true'

View File

@ -3,6 +3,7 @@ name: Build and publish container develop
# read-write repo token
# access to secrets
on:
workflow_dispatch:
push:
branches:
- develop