ci: lean Dockerfile (drop build-essential), split+timeout build steps, buildkit
build-image / build (push) Successful in 20s

This commit is contained in:
2026-07-04 18:09:17 -04:00
parent 329d8b3078
commit 1ec2a76d1e
2 changed files with 18 additions and 15 deletions
+15 -3
View File
@@ -12,20 +12,32 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
env:
IMAGE: git.farh.net/farhoodlabs/intervalsicu-mcp
DOCKER_BUILDKIT: "1"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and push image
- name: Environment
run: |
docker version || true
df -h / || true
- name: Login to registry
run: |
set -eu
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.farh.net -u cpfarhood --password-stdin
docker build \
- name: Build image
run: |
docker build --progress=plain \
-t "${IMAGE}:latest" \
-t "${IMAGE}:${GITHUB_SHA}" \
.
- name: Push image
run: |
docker push "${IMAGE}:latest"
docker push "${IMAGE}:${GITHUB_SHA}"
echo "pushed ${IMAGE}:latest and ${IMAGE}:${GITHUB_SHA}"