From 37fc346a8b928aa3afe9db8385e6ba68564a22a3 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Sun, 14 Sep 2025 15:54:51 +0200 Subject: [PATCH] feat(docker): update Docker build config, .dockerignore, and add image documentation - Updated .dockerignore to properly include necessary directories and LICENSE file - Configured Docker build action to use specific Dockerfile path in Forgejo CI - Added image documentation section in README.md - Fixed navigation links to use absolute paths in base layout - Updated edit link in footer to use correct Codeberg URL pattern - Improved image README with proper front matter and formatting --- .dockerignore | 6 ++++-- .forgejo/workflows/build.yml | 3 ++- README.md | 4 ++++ _includes/layouts/base.njk | 14 +++++++------- image/README.md | 7 +++++-- 5 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.dockerignore b/.dockerignore index 0e7fa33..2a9e71e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ + ** -!./bin -!./image +!./bin/ +!./image/ +!LICENSE diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 1d1c775..21cfdda 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -36,6 +36,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - push: true + file: image/Dockerfile platforms: linux/amd64,linux/arm64 tags: janikvonrotz/taskfile.build:latest + push: true diff --git a/README.md b/README.md index d0b668d..1a4c37e 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,10 @@ Show the available commands with `task help`.\ From the specification the project can be installed with `task install`.\ Execute all commands with `task all`. +### Image + +See [taskfile.build/image](./image) for details. + ## Naming The naming of functions is important. There are basically two styles: diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index eb2f37b..dc4dd92 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -28,19 +28,19 @@
  • taskfile.build
  • {{ content | safe }}
    diff --git a/image/README.md b/image/README.md index a0caf2a..738c22c 100644 --- a/image/README.md +++ b/image/README.md @@ -1,6 +1,9 @@ +--- +layout: layouts/base.njk +permalink: /image/ +--- -[taskfile.build](https://taskfile.build/image) -=== +# [taskfile.build](https://taskfile.build/image) [![Docker pulls](https://img.shields.io/docker/pulls/janikvonrotz/taskfile-build)](https://hub.docker.com/r/janikvonrotz/taskfile-build/)