Compare commits

..

11 Commits

Author SHA1 Message Date
3bb1e17b81 chore(deps): update debian:trixie-slim docker digest to 1caf1c7
All checks were successful
Build Docker Image / build-docker (push) Successful in 28m51s
2025-09-30 07:01:00 +00:00
d544c05fa9 chore(deps): update debian:trixie-slim docker digest to fb6a168
All checks were successful
Build Docker Image / build-docker (push) Successful in 4m48s
2025-09-30 01:01:16 +00:00
521b206994 chore(deps): update debian:trixie-slim docker digest to c288011
All checks were successful
Build Docker Image / build-docker (push) Successful in 2m37s
2025-09-09 01:01:14 +00:00
551f2762b0 chore(deps): update debian:trixie-slim docker digest to 9b9c54d
All checks were successful
Build Docker Image / build-docker (push) Successful in 3m12s
2025-09-08 22:01:52 +00:00
3356bd6f14 chore: add git package to second stage
All checks were successful
Build Docker Image / build-docker (push) Successful in 9m54s
2025-08-31 19:35:07 +10:00
f58a2d44f7 chore: clean image
All checks were successful
Build Docker Image / build-docker (push) Successful in 3m53s
2025-08-31 19:16:31 +10:00
436f686e56 chore: remove jekyll and bundler install
All checks were successful
Build Docker Image / build-docker (push) Successful in 1m15s
2025-08-31 17:11:19 +10:00
9b2d406942 chore: move to tagging builds
Some checks failed
Build Docker Image / build-docker (push) Failing after 2m35s
2025-08-31 16:48:50 +10:00
33538d5a98 chore: add PATH to Dockerfile for ansible and bundle
All checks were successful
/ build-docker (push) Successful in 3m1s
2025-08-31 16:03:27 +10:00
e2cabfdcf9 chore: add renovatebot
All checks were successful
/ build-docker (push) Successful in 4m38s
2025-08-31 16:02:42 +10:00
0b49b64f36 chore: Setup virtual python environment for ansible
All checks were successful
/ build-docker (push) Successful in 2m58s
2025-08-31 14:11:03 +10:00
3 changed files with 95 additions and 22 deletions

View File

@ -1,23 +1,50 @@
on: push
name: Build Docker Image
on:
push:
branches:
- master
# Renovate will push updates as commits
paths:
- "Dockerfile"
jobs:
build-docker:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
# 1. Checkout repository
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
# 2. Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
# 3. Login to your registry
- name: Login to Docker registry
uses: docker/login-action@v3
with:
registry: git.comprofix.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
# 4. Define timestamp tag
- name: Set Docker image tags
id: docker_tags
run: |
TIMESTAMP=$(date +'%Y.%m.%d-%H%M%S')
echo "tags=git.comprofix.com/mmckinnon/debian-latest:latest,git.comprofix.com/mmckinnon/debian-latest:$TIMESTAMP" >> $GITHUB_ENV
# 5. Build & push Docker image
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: git.comprofix.com/mmckinnon/debian-runner:latest
tags: ${{ env.tags }}

View File

@ -1,41 +1,68 @@
# Base image
FROM debian:trixie-slim
# =========================
# Stage 1: Builder
# =========================
FROM debian:trixie-slim@sha256:1caf1c703c8f7e15dcf2e7769b35000c764e6f50e4d7401c355fb0248f3ddfdb AS builder
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive \
LANG=C.UTF-8 \
PATH=/usr/local/bundle/bin:$PATH
LANG=C.UTF-8
# Install dependencies
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
git \
bash \
openssh-client \
ca-certificates \
procps \
iproute2 \
netcat-traditional \
unzip \
iputils-ping \
python3 \
python3-pip \
python3-venv \
build-essential \
zlib1g-dev \
libffi-dev \
libssl-dev \
ca-certificates \
ruby-full \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js 22
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g npm
# Install Ansible via pip
RUN pip3 install --no-cache-dir ansible
# Install Ruby and Jekyll
RUN apt-get update && apt-get install -y --no-install-recommends \
ruby-full \
&& gem install bundler jekyll \
&& npm install -g npm \
&& rm -rf /var/lib/apt/lists/*
# Create workspace
# Create Python virtual environment for Ansible
RUN python3 -m venv /opt/venv \
&& /opt/venv/bin/pip install --no-cache-dir --upgrade pip ansible
# =========================
# Stage 2: Final runtime image
# =========================
FROM debian:trixie-slim@sha256:1caf1c703c8f7e15dcf2e7769b35000c764e6f50e4d7401c355fb0248f3ddfdb
ENV DEBIAN_FRONTEND=noninteractive \
LANG=C.UTF-8 \
PATH=/opt/venv/bin:$PATH
# Install runtime dependencies only
RUN apt-get update && apt-get install -y --no-install-recommends \
bash \
openssh-client \
ca-certificates \
iputils-ping \
python3 \
python3-venv \
ruby-full \
nodejs \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy built Python venv from builder
COPY --from=builder /opt/venv /opt/venv
# Set working directory
WORKDIR /workspace
# Default shell

19
renovate.json Normal file
View File

@ -0,0 +1,19 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"renovatebot/renovate-config",
":semanticCommitTypeAll(chore)"
],
"automerge": true,
"automergeType": "branch",
"automergeStrategy": "rebase",
"commitBodyTable": true,
"ignoreTests": true,
"major": {
"automerge": false,
"dependencyDashboardApproval": true,
"commitMessagePrefix": "chore(deps-major): ",
"labels": ["dependencies", "breaking"]
}
}