Files
debian-latest/.gitea/workflows/build.yml
Matthew McKinnon 9b2d406942
Some checks failed
Build Docker Image / build-docker (push) Failing after 2m35s
chore: move to tagging builds
2025-08-31 16:48:50 +10:00

43 lines
1.1 KiB
YAML

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
# 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 }}
# 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
git.comprofix.com/mmckinnon/debian-runner:${{ github.ref_name }}