48 lines
2.0 KiB
Markdown
48 lines
2.0 KiB
Markdown
---
|
|
id: 73646e80-a640-4316-b7c6-54a4330f1b28
|
|
type: configuration
|
|
title: "Gitea Actions shared composite actions repo pattern"
|
|
tags: [gitea, ci-cd, actions, workflow, convention, docker]
|
|
importance: 0.8
|
|
confidence: 0.8
|
|
created: "2026-02-18T20:06:25.840515+00:00"
|
|
updated: "2026-03-02T00:33:27.280642+00:00"
|
|
relations:
|
|
- target: b27fb831-811e-4103-b5f1-3c36d5b1ad20
|
|
type: RELATED_TO
|
|
direction: incoming
|
|
strength: 0.85
|
|
edge_id: 09d667bd-280d-4c42-aa8e-1d5a63997ffe
|
|
- target: 7f7b08eb-5105-4e87-a0d3-4abfc3fd0f8d
|
|
type: RELATED_TO
|
|
direction: incoming
|
|
strength: 0.85
|
|
edge_id: cff48e9a-eb17-49ac-adff-5ff19e1bd3dc
|
|
- target: a2d02aea-07fd-4528-8158-f2f42a23a2dd
|
|
type: RELATED_TO
|
|
direction: incoming
|
|
strength: 0.76
|
|
edge_id: 72478c93-188b-4e69-8809-5bfd4132e5a0
|
|
---
|
|
|
|
All CI/CD workflows across projects use shared composite actions from cal/gitea-actions repo on Gitea. This repo is PUBLIC (required for runner auth to work with REQUIRE_SIGNIN_VIEW=false).
|
|
|
|
Available actions:
|
|
- cal/gitea-actions/calver@main — generates CalVer version (YYYY.MM.BUILD) from git tags
|
|
- cal/gitea-actions/gitea-tag@main — creates git tag via Gitea API
|
|
- cal/gitea-actions/discord-notify@main — sends Discord embed notification via webhook
|
|
|
|
Workflow reference patterns:
|
|
- Local actions (cal/gitea-actions): use SHORT FORM — uses: cal/gitea-actions/calver@main
|
|
- GitHub actions (actions/checkout etc): use FULL URL — uses: https://github.com/actions/checkout@v4
|
|
|
|
This is required because DEFAULT_ACTIONS_URL=self is set in Gitea app.ini, which resolves short-form references against the local Gitea instance.
|
|
|
|
When creating a new project workflow:
|
|
1. Copy an existing docker-build.yml or deploy.yml as template
|
|
2. Use short form for cal/gitea-actions/* references
|
|
3. Use https://github.com/ prefix for all GitHub action references
|
|
4. Secrets needed: DOCKERHUB_USERNAME, DOCKERHUB_TOKEN, DISCORD_WEBHOOK (for Docker builds)
|
|
|
|
Repos using this pattern: major-domo-database, paper-dynasty-discord, paper-dynasty-database, major-domo-v2, vagabond-rpg-foundryvtt
|