updated the workflow to have caching and multiplatform and only use ubuntu 24.04

This commit is contained in:
2025-11-13 19:45:08 +00:00
parent 2d32513818
commit f58eecf285

View File

@@ -14,7 +14,7 @@ env:
jobs:
build-and-push:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout code
@@ -50,6 +50,9 @@ jobs:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: |
${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:cache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:cache,mode=max