Regular check for latest Build (on baseimage update) #4914
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Regular check for latest Build (on baseimage update) | |
on: | |
schedule: | |
- cron: "0 */6 * * *" | |
env: | |
IMAGE_BASE: phusion/baseimage:focal-1.0.0 | |
IMAGE: rix1337/docker-ripper | |
jobs: | |
check-base-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Docker Image Update Checker | |
id: baseupdatecheck | |
uses: lucacome/[email protected] | |
with: | |
base-image: ${{ env.IMAGE_BASE }} | |
image: ${{ env.IMAGE }} | |
- name: Trigger Docker Image build | |
run: | | |
curl -XPOST -u "${{ secrets.CR_USER }}:${{secrets.CR_PAT}}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/${{ env.IMAGE }}/actions/workflows/BuildImage.yml/dispatches | |
if: steps.baseupdatecheck.outputs.needs-updating == 'true' |