10 Commits

Author SHA1 Message Date
f385fcdc28 fix: Reverts to inline on gitea, try non-inline on github. 2026-02-11 12:15:46 -05:00
af4d4e393a fix: Try without inline cache. 2026-02-11 12:05:18 -05:00
0f96c67058 fix: Try with inline cache mode. 2026-02-11 11:56:29 -05:00
fbee56e460 fix: Try without cache to ensure builds work. 2026-02-11 11:43:11 -05:00
a8286f9ce2 fix: Fix gitea build & push image. 2026-02-11 11:34:27 -05:00
e3a731e3fa fix: Fix gitea build & push image.
Some checks failed
CI / Linux Tests (push) Has been cancelled
2026-02-11 11:23:10 -05:00
8e66d57994 fix: Fix gitea build & push image.
Some checks failed
CI / Linux Tests (push) Has been cancelled
2026-02-11 11:03:53 -05:00
87c651eed9 fix: Fix gitea build & push image building mulitple images.
Some checks failed
CI / Linux Tests (push) Has been cancelled
2026-02-11 10:50:14 -05:00
e8ab85a189 fix: Fix gitea build & push image building mulitple images.
Some checks failed
CI / Linux Tests (push) Has been cancelled
2026-02-11 10:44:19 -05:00
1fcf331729 feat: Add image cache support to gitea workflow, for quicker image builds.
Some checks failed
CI / Linux Tests (push) Has been cancelled
2026-02-11 10:41:39 -05:00
2 changed files with 16 additions and 8 deletions

View File

@@ -9,7 +9,8 @@ on:
env:
REGISTRY: git.housh.dev
IMAGE_NAME: ductcalc
USERNAME: michael
IMAGE_NAME: ${{ gitea.repository }}
jobs:
build-and-push-image:
@@ -24,15 +25,18 @@ jobs:
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ gitea.actor }}
password: ${{ secrets.CONTAINER_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
@@ -45,12 +49,13 @@ jobs:
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:build
cache-to: mode=min,image-manifest=true,oci-mediatypes=true,type=inline,ref=${{ env.IMAGE_NAME }}:build

View File

@@ -9,7 +9,8 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ductcalc
IMAGE_NAME: ${{ github.repository }}
USERNAME: m-housh
jobs:
build-and-push-image:
@@ -27,7 +28,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
username: ${{ env.USERNAME }}
password: ${{ secrets.CONTAINER_TOKEN }}
- name: Set up Docker
@@ -48,7 +49,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ env.USERNAME }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
@@ -67,4 +68,6 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.USERNAME }}/${{ env.IMAGE_NAME }}:buildcache
cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ env.USERNAME }}/${{ env.IMAGE_NAME }}:build