Skip to content

Commit 4ec248d

Browse files
committed
Version 1.3
1 parent a8d19fa commit 4ec248d

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed

.VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/parameters/.VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v1.3
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check Base Image
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
check-and-trigger:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Docker Base Image Checker
13+
id: checkbaseimage
14+
uses: lucacome/[email protected]
15+
with:
16+
base-image: "library/debian:buster-slim"
17+
image: "dontobi/motioneye.rpi:latest"
18+
19+
- if: steps.checkbaseimage.outputs.needs-updating == 'true'
20+
name: Trigger build
21+
uses: benc-uk/[email protected]
22+
with:
23+
workflow: Build Container (Stable)
24+
repo: dontobi/motioneye.rpi
25+
token: ${{ secrets.ACTIONS_PAT }}

.github/workflows/docker-image.yml renamed to .github/workflows/docker-build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# Github action to build Docker image from main branch (tag: latest)
1+
# Github action to build Docker image from main branch
22

3-
name: Build Docker Image (main)
3+
name: Build Container (Stable)
44

55
on:
6-
workflow_dispatch:
76
release:
87
types:
98
- published
10-
schedule:
11-
- cron: '0 0 * * FRI'
9+
workflow_dispatch:
1210

1311
jobs:
1412
bulid:
@@ -23,7 +21,7 @@ jobs:
2321
- name: Get and write version
2422
id: version
2523
run: |
26-
VERSION="$(cat .VERSION)"
24+
VERSION="$(cat .github/parameters/.VERSION)"
2725
DATI="$(date --rfc-3339=seconds | sed 's/ /T/')"
2826
echo "version=$VERSION" >> $GITHUB_ENV
2927
echo "dati=$DATI" >> $GITHUB_ENV

0 commit comments

Comments
 (0)