README.md raw

Gitea Actions Setup

This directory contains workflows for Gitea Actions, which is a self-hosted CI/CD system compatible with GitHub Actions syntax.

Workflow: go.yml

The go.yml workflow handles building, testing, and releasing the ORLY relay when version tags are pushed.

Features

Prerequisites

  1. Gitea Token: Add a secret named GITEA_TOKEN in your repository settings

- Go to: Repository Settings → Secrets → Add Secret - Name: GITEA_TOKEN - Value: Your Gitea personal access token with repo and write:packages permissions

  1. Runner Configuration: Ensure your Gitea Actions runner is properly configured

- The runner should have access to pull Docker images - Ubuntu-latest image should be available

Usage

To create a new release:

# 1. Update version in pkg/version/version file
echo "v0.29.4" > pkg/version/version

# 2. Commit the version change
git add pkg/version/version
git commit -m "bump to v0.29.4"

# 3. Create and push the tag
git tag v0.29.4
git push origin v0.29.4

# 4. The workflow will automatically:
#    - Build the binary
#    - Run tests
#    - Create a release on your Gitea instance
#    - Upload the binary and checksums

Environment Variables

The workflow uses standard Gitea Actions environment variables:

Troubleshooting

Issue: Workflow fails to clone repository

Issue: Cannot create release

Issue: Go version not found

Customization

To modify the workflow:

  1. Edit .gitea/workflows/go.yml
  2. Test changes by pushing a tag (or use act locally for testing)
  3. Monitor the Actions tab in your Gitea repository for results

Differences from GitHub Actions

This makes the workflow completely self-contained and independent of external services.