chore: clean image
All checks were successful
Build Docker Image / build-docker (push) Successful in 3m53s

This commit is contained in:
2025-08-31 19:16:31 +10:00
parent 436f686e56
commit f58a2d44f7
2 changed files with 61 additions and 33 deletions

View File

@ -2,9 +2,11 @@ name: Build Docker Image
on:
push:
# Only build on tags (like v1.0.0)
tags:
- "v*"
branches:
- master
# Renovate will push updates as commits
paths:
- "Dockerfile"
jobs:
build-docker:
@ -13,7 +15,7 @@ jobs:
image: catthehacker/ubuntu:act-latest
steps:
# 1. Checkout the repo
# 1. Checkout repository
- name: Checkout repository
uses: actions/checkout@v5
with:
@ -23,7 +25,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# 3. Log in to your registry
# 3. Login to your registry
- name: Login to Docker registry
uses: docker/login-action@v3
with:
@ -31,12 +33,18 @@ jobs:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
# 4. Build and push Docker image
# 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
git.comprofix.com/mmckinnon/debian-runner:${{ github.ref_name }}
tags: ${{ env.tags }}