Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
brugr committed Jan 2, 2023
1 parent 236a0d0 commit 39fcc6f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Auto update
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:

jobs:
check:
name: Check if out-of-date
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected]

- name: Check parent image out-of-date
id: check
uses: twiddler/is-my-docker-parent-image-out-of-date@v1
with:
parent-image: python:slim
my-image: ghcr.io/brugr/deemon-simple:latest

- name: Echo output
run: |
echo "${{ steps.check.outputs.out-of-date }}"
outputs:
out-of-date: ${{ steps.check.outputs.out-of-date }}

build:
needs: [check]
uses: ./.github/workflows/build.yml
if: needs.check.outputs.out-of-date == 'true'
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
paths:
- 'Containerfile'
- 'requirements.txt'
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
workflow_call:

env:
IMAGE_NAME: deemon-simple
Expand Down

0 comments on commit 39fcc6f

Please sign in to comment.