Adding docker to base act image.
All checks were successful
build-publish / docker (push) Successful in 1m0s

This commit is contained in:
Sean Wilbur 2026-04-29 07:29:47 -05:00
parent d930ef8433
commit 26ca4dfc8d
3 changed files with 16 additions and 10 deletions

2
.env
View File

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

View File

@ -1,4 +1,4 @@
FROM zima1.abutili.net:3002/images/base:latest
FROM git.abutili.net/images/base:latest
USER root
@ -13,9 +13,15 @@ LABEL org.opencontainers.image.title="act-base" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.source="https://git.abutili.net/images/act-base"
# install system deps
# install system deps and docker cli
RUN apt-get update && apt-get install -y --no-install-recommends \
jq xz-utils git openssh-client \
jq xz-utils git openssh-client ca-certificates curl gnupg \
&& mkdir -p /etc/apt/keyrings \
&& . /etc/os-release \
&& curl -fsSL "https://download.docker.com/linux/${ID}/gpg" | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/${ID} ${VERSION_CODENAME} stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update && apt-get install -y --no-install-recommends \
docker-ce-cli docker-buildx-plugin docker-compose-plugin \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

View File

@ -1,21 +1,21 @@
# Container Build and Publish Template
# Action Base Image
This repository provides a basic template for building and publishing container images using Gitea Actions.
This repository provides a base Debian image pre-configured with Node.js and common tools, designed for running Gitea Actions.
## 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., `act-base`)
Example `.env` file:
```
REG=zima1.abutili.net:3002
NS=devops
IMG=container-build-publish
NS=images
IMG=act-base
```
## Gitea Secrets