mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-17 10:29:00 +02:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
69 lines
3.0 KiB
YAML
69 lines
3.0 KiB
YAML
name: Version Checks
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '42 23 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
check-and-trigger:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4.1.1
|
|
with:
|
|
repository: 'buanet/ioBroker.docker'
|
|
token: ${{ secrets.ACTIONS_PAT }}
|
|
|
|
- name: Get and write version
|
|
id: version
|
|
run: |
|
|
LATESTRELEASE="$(curl -sL https://api.github.com/repos/buanet/ioBroker.docker/releases/latest | jq -r '.tag_name')"
|
|
echo "iobroker=iobroker/iobroker:$LATESTRELEASE" >> $GITHUB_ENV
|
|
echo "baseimage=library/debian:bookworm-slim" >> $GITHUB_ENV
|
|
|
|
- name: Docker Baseimage Checker
|
|
id: baseimage
|
|
uses: mkumatag/container-image-updater-action@v1.0.5
|
|
with:
|
|
base-image: '${{ env.baseimage }}'
|
|
image: '${{ env.iobroker }}'
|
|
|
|
- name: Fetch ioBroker and nodejs versions
|
|
run: |
|
|
curl -sL https://repo.iobroker.live/sources-dist.json | \
|
|
jq -r '."js-controller".version' > .github/dependencies/.js-controller-version
|
|
echo "[LOG] Fetched js-controller version is $(cat .github/dependencies/.js-controller-version)"
|
|
curl -sL https://repo.iobroker.live/sources-dist.json | \
|
|
jq -r '."admin".version' > .github/dependencies/.admin-version
|
|
echo "[LOG] Fetched admin version is $(cat .github/dependencies/.admin-version)"
|
|
curl -sL https://repo.iobroker.live/sources-dist.json | \
|
|
jq -r '."backitup".version' > .github/dependencies/.backitup-version
|
|
echo "[LOG] Fetched backitup version is $(cat .github/dependencies/.backitup-version)"
|
|
curl -sL https://repo.iobroker.live/sources-dist.json | \
|
|
jq -r '."discovery".version' > .github/dependencies/.discovery-version
|
|
echo "[LOG] Fetched discovery version is $(cat .github/dependencies/.discovery-version)"
|
|
curl -sL "https://deb.nodesource.com/node_18.x/dists/bullseye/main/binary-amd64/Packages" | \
|
|
awk -F ': ' '/^Version:/ {split($2,a,"-"); print a[1]}' > .github/dependencies/.nodejs-version
|
|
echo "[LOG] Fetched nodejs version is $(cat .github/dependencies/.nodejs-version)"
|
|
|
|
- name: Check for modified files
|
|
id: git-check
|
|
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
|
|
|
|
- name: Commit latest release version
|
|
if: steps.git-check.outputs.modified == 'true'
|
|
run: |
|
|
git config --global user.name 'buanet'
|
|
git config --global user.email 'info@buanet.de'
|
|
git commit -am "new ioBroker versions"
|
|
git push
|
|
|
|
- name: Trigger Build Debian 12 Image (latest)
|
|
if: steps.baseimage.outputs.needs-update == 'true' || steps.git-check.outputs.modified == 'true'
|
|
uses: benc-uk/workflow-dispatch@v1.2
|
|
with:
|
|
workflow: Build Debian 12 Image (latest)
|
|
repo: buanet/ioBroker.docker
|
|
token: ${{ secrets.ACTIONS_PAT }}
|