# # 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'