build: add docker image update checker action
Some checks failed
BuildMain / BuildLatest (push) Has been cancelled
Some checks failed
BuildMain / BuildLatest (push) Has been cancelled
This commit is contained in:
parent
d49369949d
commit
563323c009
@ -5,6 +5,7 @@
|
|||||||
name: BuildTag
|
name: BuildTag
|
||||||
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 2 * * *"
|
- cron: "30 2 * * *"
|
||||||
|
|
||||||
@ -15,17 +16,25 @@ jobs:
|
|||||||
runs-on: cth-ubuntu-latest
|
runs-on: cth-ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Set up docker buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
driver-opts: |
|
|
||||||
network=giteanet
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Check if update available
|
||||||
|
id: checkupdate
|
||||||
|
uses: lucacome/docker-image-update-checker@v2.0.0
|
||||||
|
with:
|
||||||
|
base-image: roundcube/roundcubemail:latest-apache
|
||||||
|
image: zeguigui/roundcubemail:latest-apache
|
||||||
|
- name: Needs updating ?
|
||||||
|
run: echo "Needs updating: ${{ steps.check.outputs.needs-updating }}"
|
||||||
|
- name: Set up docker buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver-opts: |
|
||||||
|
network=giteanet
|
||||||
- name: Build and push version
|
- name: Build and push version
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user