#1 first image
All checks were successful
build-publish / docker (push) Successful in 1m26s

This commit is contained in:
Sean Wilbur 2026-05-31 13:52:41 -05:00
parent 7c0c7c7856
commit 82aa1923ef
3 changed files with 21 additions and 7 deletions

2
.env
View File

@ -1,4 +1,4 @@
# target
REG=zima1.abutili.net:3002
REG=git.abutili.net
NS=images
IMG=base

View File

@ -11,11 +11,22 @@ LABEL org.opencontainers.image.title="base" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.source="https://git.abutili.net/images/base"
# Set standard environment variables
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
TZ=UTC
# Install essential base system dependencies
# tini: Proper init process for containers
# tzdata: Timezone data for applications
# jq: JSON processor for scripts/healthchecks
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
bash \
tini \
tzdata \
jq \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
@ -26,3 +37,6 @@ WORKDIR /workspace
# Default shell
SHELL ["/bin/bash", "-eo", "pipefail", "-c"]
# Use tini as the entrypoint to handle signal forwarding and zombie reaping
ENTRYPOINT ["/usr/bin/tini", "--"]

View File

@ -1,21 +1,21 @@
# Container Build and Publish Template
# Base Image
This repository provides a basic template for building and publishing container images using Gitea Actions.
This repository provides a minimal, Debian-based foundation image used by other custom images.
## Environment Variables
The following environment variables are expected to be set in the `.env` file for local development, and as Gitea repository or organization variables for CI/CD:
* `REG`: The container registry hostname (e.g., `zima1.abutili.net:3002`)
* `NS`: The namespace/project within the registry (e.g., `devops`)
* `IMG`: The image name (e.g., `container-build-publish`)
* `NS`: The namespace/project within the registry (e.g., `images`)
* `IMG`: The image name (e.g., `base`)
Example `.env` file:
```
REG=zima1.abutili.net:3002
NS=devops
IMG=container-build-publish
NS=images
IMG=base
```
## Gitea Secrets