chore: move to tagging builds
Some checks failed
Build Docker Image / build-docker (push) Failing after 2m35s

This commit is contained in:
2025-08-31 16:48:50 +10:00
parent 33538d5a98
commit 9b2d406942
2 changed files with 60 additions and 25 deletions

View File

@ -1,23 +1,42 @@
on: push
name: Build Docker Image
on:
push:
# Only build on tags (like v1.0.0)
tags:
- "v*"
jobs:
build-docker:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
# 1. Checkout the repo
- 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. Log in 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. Build and push Docker image
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
file: ./Dockerfile
push: true
tags: git.comprofix.com/mmckinnon/debian-runner:latest
tags: |
git.comprofix.com/mmckinnon/debian-runner:latest
git.comprofix.com/mmckinnon/debian-runner:${{ github.ref_name }}