29 lines
802 B
YAML
29 lines
802 B
YAML
name: check-update
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '.forgejo/workflows/check-update.yml'
|
|
|
|
jobs:
|
|
check-update:
|
|
runs-on: lxc
|
|
steps:
|
|
- name: Install Docker
|
|
run: curl -fsSL https://get.docker.com | sh
|
|
|
|
- name: Pull
|
|
env:
|
|
IMAGE: git.xlion.tw/xlionjuan/docker-dind-fedora:latest
|
|
run: |
|
|
echo "Pulling..."
|
|
docker pull ${IMAGE}
|
|
|
|
- name: Check update for git.xlion.tw/xlionjuan/docker-dind-fedora:latest
|
|
env:
|
|
IMAGE: git.xlion.tw/xlionjuan/docker-dind-fedora:latest
|
|
run: |
|
|
echo "==========DNF Updates=========="
|
|
docker run --rm ${IMAGE} /bin/bash -c 'dnf update --assumeno >/dev/null 2>&1 || true && dnf update --assumeno || true'
|