Files
router-lists-ui/.gitea/workflows/docker-publish-fast.yml
T
denozord 2dfb6916dd
Publish Fast Tabler Docker image / Test before build (push) Failing after 7m0s
Publish Fast Tabler Docker image / Build and push image (push) Has been skipped
Test and Lint / Backend tests (push) Successful in 9m38s
Test and Lint / Frontend lint, test, build (push) Failing after 5m38s
feat(tests): update test scripts for backend and frontend, add CI testing workflow
2026-02-12 11:20:36 +07:00

77 lines
2.5 KiB
YAML

name: Publish Fast Tabler Docker image
on:
push:
branches:
- tabler
- v3
jobs:
test:
name: Test before build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Backend tests
run: npm ci && npm test
working-directory: backend
- name: Frontend lint, typecheck, test, build
run: npm ci && npm run lint && npm run typecheck && npm test && npm run build
working-directory: frontend
build-and-push-fast:
name: Build and push image
needs: test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
image=moby/buildkit:v0.13.2
- name: Log in to Gitea Registry
uses: docker/login-action@v3
with:
registry: git.shts.su
username: ${{ gitea.actor }}
password: ${{ secrets.ACTIONS_PAT }}
- name: Build and push Fast Tabler Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.fast
push: true
platforms: linux/amd64
cache-from: |
type=registry,ref=git.shts.su/${{ gitea.repository }}:tabler-fast
cache-to: type=inline
tags: |
git.shts.su/${{ gitea.repository }}:tabler-fast
git.shts.su/${{ gitea.repository }}:tabler-fast-${{ gitea.sha }}
labels: |
org.opencontainers.image.title=S3 Lists Manager with Tabler UI (Fast Build)
org.opencontainers.image.description=Modern S3 Lists Manager with Tabler UI design - Fast Alpine build
org.opencontainers.image.version=tabler-fast
org.opencontainers.image.revision=${{ gitea.sha }}
org.opencontainers.image.created=${{ gitea.event.head_commit.timestamp }}
provenance: false
- name: Cleanup old images
run: |
echo "Skipping container registry cleanup (inline cache in image). Keep 3 latest image tags logic can be added with regctl if needed."
- name: Trigger container update webhook
run: |
curl -X POST -sS --fail https://docker.shts.su/api/webhooks/d3fd3b6a-c670-4035-9357-2fde8aa76b6e