fix: parallel CD trigger, remove env blocker, cleanup release pipeline
CD / deploy (push) Failing after 10s
CI / test (push) Successful in 52s
CI / docker (push) Successful in 21s
Release / release (push) Successful in 26s

This commit is contained in:
zwitschi committed 2026-08-06 22:01:29 +02:00
1 parent 74bf7e19db
commit 4c02ab9d55
13 files changed
+95 -91

No files matched your search

+2 -14
View File
@@ -1,23 +1,18 @@
# CD workflow — TEST LAB DEPLOYMENT
# Deploys to test lab host 192.168.88.40:2375.
# Production Hetzner target TBD — switch DOCKER_HOST when provisioned.
# See TODO.md Production Deployment section for cutover plan.
# See DEPLOYMENT.md Production Deployment section for cutover plan.
name: CD
on:
workflow_run:
workflows: ["CI"]
types:
- completed
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: [ubuntu-latest]
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
environment: production
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -27,13 +22,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.allucanget.biz
username: ${{ secrets.CI_REGISTRY_USER }}
password: ${{ secrets.CI_REGISTRY_TOKEN }}
- name: Prepare environment
run: |
cat > .env << 'EOF'
+1 -18
View File
@@ -43,7 +43,7 @@ jobs:
run: cd backend/chat && GOTOOLCHAIN=local go vet ./...
- name: Run Tests
run: echo "Tests will be added in future CI steps (per TODO.md)"
run: echo "Tests will be added in future CI steps"
docker:
needs: test
@@ -132,20 +132,3 @@ jobs:
labels: ${{ steps.meta-nginx.outputs.labels }}
cache-from: type=registry,ref=git.allucanget.biz/zwitschi/linearvoid/buildcache:nginx
cache-to: type=registry,ref=git.allucanget.biz/zwitschi/linearvoid/buildcache:nginx,mode=max
release:
needs: docker
runs-on: [ubuntu-latest]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.CI_REGISTRY_TOKEN }}