roundcube/.gitea/workflows/nightly.yaml
Guillaume Lapierre 99ed6b8f1e
All checks were successful
BuildMain / BuildLatest (push) Successful in 8m32s
BuildTag / BuildNightly (push) Successful in 33s
chore: remove push trigger on nightly rebuild
2024-11-12 12:03:04 +01:00

44 lines
1.2 KiB
YAML

#
# Build docker image
#
name: BuildTag
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on:
schedule:
- cron: "30 2 * * *"
jobs:
BuildNightly:
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: cth-ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
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: Set up docker buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
network=giteanet
if: steps.checkupdate.outputs.needs-updating == 'true'
- name: Build and push version
uses: docker/build-push-action@v5
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
push: true
tags: zeguigui/roundcubemail:latest-apache
if: steps.checkupdate.outputs.needs-updating == 'true'