mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 12:56:51 +00:00
auto-update images
This commit is contained in:
parent
86e33a7f04
commit
fc2463a14b
31
.github/workflows/auto_update_base_image.yml
vendored
Normal file
31
.github/workflows/auto_update_base_image.yml
vendored
Normal 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'
|
||||
@ -3,6 +3,7 @@ name: Build and publish container develop
|
||||
# read-write repo token
|
||||
# access to secrets
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
|
||||
Loading…
Reference in New Issue
Block a user