Compare commits

...

2 commits

Author SHA1 Message Date
Marko Korhonen 8f78963464
Add scheduled weekly build
All checks were successful
Build Docker image / Build and publish image (push) Successful in 4m4s
2024-04-04 19:31:51 +03:00
Marko Korhonen 8143dabd09
Format workflow 2024-04-04 19:23:20 +03:00
2 changed files with 18 additions and 1 deletions

View file

@ -1,17 +1,30 @@
on: [push]
name: Build Docker image
on:
push:
schedule:
- cron: "0 6 * * 7"
jobs:
build_image:
name: Build and publish image
runs-on: docker
if: env.SCHEDULED == 'true' || !contains(github.event.commits[0].message, '[skip ci]')
env:
SCHEDULED: ${{ github.event_name == 'schedule' }}
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker registry (Forgejo)
uses: docker/login-action@v3
with:
registry: git.korhonen.cc
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push image
uses: docker/build-push-action@v5
with:

View file

@ -17,6 +17,10 @@ was too old.
** npm and nodejs
** git
== Updates
This image is built weekly on sunday at 06:00 EET/EEST on the `archlinux:latest` image.
== Installation
* link:https://git.korhonen.cc/FunctionalHacker/-/packages/container/hugo-asciidoc-docker-ci/latest[Download Docker image]