ci: align gitea workflows with agent kit
Some checks failed
Release Dry Run / release-dry-run (push) Failing after 5s
Codex Template Compliance / template-compliance (push) Failing after 4s
Build / test-and-image (push) Successful in 51s

This commit is contained in:
2026-05-16 21:22:36 +02:00
parent 42b7fc2024
commit d072390e56
7 changed files with 687 additions and 6 deletions

View File

@@ -11,6 +11,11 @@ on:
jobs:
test-and-image:
runs-on: ubuntu-latest
env:
REGISTRY_HOST: git.wilkensxl.de
REGISTRY_NAMESPACE: mrsphay
IMAGE_NAME: intelligence-terminal
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -31,12 +36,17 @@ jobs:
run: docker compose config
- name: Build Docker image
run: docker build -t git.wilkensxl.de/mrsphay/intelligence-terminal:${{ github.sha }} .
run: docker build -t "${REGISTRY_HOST}/${REGISTRY_NAMESPACE}/${IMAGE_NAME}:${GITHUB_SHA}" .
- name: Publish Docker image
if: ${{ secrets.REGISTRY_TOKEN != '' }}
if: ${{ env.REGISTRY_TOKEN != '' }}
shell: bash
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.wilkensxl.de -u "${{ github.repository_owner }}" --password-stdin
docker tag git.wilkensxl.de/mrsphay/intelligence-terminal:${{ github.sha }} git.wilkensxl.de/mrsphay/intelligence-terminal:latest
docker push git.wilkensxl.de/mrsphay/intelligence-terminal:${{ github.sha }}
docker push git.wilkensxl.de/mrsphay/intelligence-terminal:latest
image="${REGISTRY_HOST}/${REGISTRY_NAMESPACE}/${IMAGE_NAME}"
date_tag="$(date -u +%Y%m%d)"
echo "${REGISTRY_TOKEN}" | docker login "${REGISTRY_HOST}" -u "${REGISTRY_NAMESPACE}" --password-stdin
docker tag "${image}:${GITHUB_SHA}" "${image}:latest"
docker tag "${image}:${GITHUB_SHA}" "${image}:${date_tag}"
docker push "${image}:${GITHUB_SHA}"
docker push "${image}:latest"
docker push "${image}:${date_tag}"