Skip to content

Snippet index ​

Home · Compatibility · Troubleshooting

Each ID links to a copyable example with prerequisites, placement and verification steps.

1. Workflow fundamentals ​

IDExample
F01First workflow
F02Branches, paths and manual dispatch
F03Parallel jobs and a dependency gate
F04Step, job and workflow variables
F05Write a value for a later step
F06Pass a job output
F07Typed manual input
F08Cancel superseded PR runs

2. Gitea Actions and the local runner ​

IDExample
G01Identify the job environment
G02Python tests with uv and a lockfile
G03Lint, test and build a Python wheel
G04Check runner artifact support
G05Check runner cache access
G06Explicit action source
G07Measure runner capacity

3. Tests and quality gates ​

IDExample
T01Python runtime matrix with pip caching
T02Ruff lint and format check
T03Coverage threshold and test report
T04Postgres integration test
T05Node frontend checks
T06Always report the required PR check
T07Terraform static validation

4. Artifacts, caches and workflow reuse ​

IDExample
A01Build, upload, download and install a wheel
A02Keep matrix artifacts distinct
A03Cache uv downloads by dependency changes
A04Reusable workflow with a caller
A05Reuse steps with a composite action
A06Check an artifact transfer with a SHA-256 manifest

5. Containers and releases ​

IDExample
B01Build a pull request image without credentials
B02Test the running image
B03Publish to GHCR only after tests pass
B04Publish to Gitea's OCI registry
B05Build an amd64 and arm64 image
B06Publish a release from a protected version tag

6. Deployment, smoke tests and rollback ​

IDExample
D01Staging preflight and server-side dry-run
D02Manually deploy an approved immutable image
D03Serialize a staging deployment
D04Smoke-test the deployed Service
D05Restore a known-good digest
D06Validate a GitOps image promotion in a pull request

7. Workflow security and supply chain ​

IDExample
S01Give verification jobs read-only access
S02Treat pull request fields as data
S03Generate an SBOM and gate image findings
S04Attest and verify an image
S05Ask for short-lived cloud credentials
S06Verify an action version before pinning

8. Pipeline observability and reliability ​

IDExample
O01Record the tested commit and outcome
O02Bound a slow integration test
O03Retry a bounded read-only check
O04Capture cluster evidence after smoke-test failure
O05Gate an inference endpoint on p95 latency

9. GitLab CI comparison ​

IDExample
X01Lint and test in parallel, then package
X02Switch between branch and merge-request pipelines
X03Cache pip downloads and collect JUnit results
X04Consume a wheel artifact through needs
X05Run parallel Python versions

10. Practice ​