Skip to content

ci: add Gitea self-hosted deploy workflow#114

Merged
tayyebi merged 2 commits intomainfrom
copilot/setup-gitea-runner-ci
Feb 25, 2026
Merged

ci: add Gitea self-hosted deploy workflow#114
tayyebi merged 2 commits intomainfrom
copilot/setup-gitea-runner-ci

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

Adds a Gitea Actions workflow that auto-deploys the mailserver on push to main using the runner's host Docker socket — no external registry, no artifacts.

Changes

  • .gitea/workflows/deploy.yml — new workflow with two steps:
    • git pull via a throwaway alpine/git container mounted at /home/ubuntu/d/mailserver
    • docker compose up -d --build run directly against the host daemon through the mounted socket
- name: Pull latest code
  run: |
    docker run --rm \
      -v /home/ubuntu/d/mailserver:/repo \
      -w /repo \
      alpine/git \
      pull

- name: Rebuild and restart
  run: |
    docker compose -f /home/ubuntu/d/mailserver/docker-compose.yml up -d --build

Requires a self-hosted Gitea runner with /var/run/docker.sock mounted from the host.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: tayyebi <14053493+tayyebi@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Gitea runner CI for automated workflows ci: add Gitea self-hosted deploy workflow Feb 25, 2026
@tayyebi tayyebi marked this pull request as ready for review February 25, 2026 20:21
@tayyebi tayyebi merged commit e666c6d into main Feb 25, 2026
1 check passed
@tayyebi tayyebi deleted the copilot/setup-gitea-runner-ci branch February 25, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants