Skip to content

Commit

Permalink
Version 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dontobi committed Jan 29, 2022
1 parent a8d19fa commit 4ec248d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 7 deletions.
1 change: 0 additions & 1 deletion .VERSION

This file was deleted.

1 change: 1 addition & 0 deletions .github/parameters/.VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1.3
25 changes: 25 additions & 0 deletions .github/workflows/check-base-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check Base Image

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
check-and-trigger:
runs-on: ubuntu-latest
steps:
- name: Docker Base Image Checker
id: checkbaseimage
uses: lucacome/[email protected]
with:
base-image: "library/debian:buster-slim"
image: "dontobi/motioneye.rpi:latest"

- if: steps.checkbaseimage.outputs.needs-updating == 'true'
name: Trigger build
uses: benc-uk/[email protected]
with:
workflow: Build Container (Stable)
repo: dontobi/motioneye.rpi
token: ${{ secrets.ACTIONS_PAT }}
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Github action to build Docker image from main branch (tag: latest)
# Github action to build Docker image from main branch

name: Build Docker Image (main)
name: Build Container (Stable)

on:
workflow_dispatch:
release:
types:
- published
schedule:
- cron: '0 0 * * FRI'
workflow_dispatch:

jobs:
bulid:
Expand All @@ -23,7 +21,7 @@ jobs:
- name: Get and write version
id: version
run: |
VERSION="$(cat .VERSION)"
VERSION="$(cat .github/parameters/.VERSION)"
DATI="$(date --rfc-3339=seconds | sed 's/ /T/')"
echo "version=$VERSION" >> $GITHUB_ENV
echo "dati=$DATI" >> $GITHUB_ENV
Expand Down

0 comments on commit 4ec248d

Please sign in to comment.