5 Commits

Author SHA1 Message Date
1b248a2957 Merge pull request 'feat/sync' (#39) from feat/sync into staging
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 3m30s
Reviewed-on: #39
2025-12-28 06:28:02 +00:00
7348bdafb7 Delete test 2025-12-28 06:24:40 +00:00
cb8529f13e Update test 2025-12-28 06:20:21 +00:00
fa6b097d66 Add test file 2025-12-28 13:19:45 +07:00
e3c4f59a77 Add GitHub to Gitea sync workflow 2025-12-28 13:15:05 +07:00

27
.github/workflows/sync-to-gitea.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Sync to Gitea
on:
push:
branches:
- '**'
jobs:
sync:
runs-on: ubuntu-latest
if: |
github.repository == 'fossyy/tunnel-please' &&
!contains(github.event.head_commit.message, '[skip-gitea]')
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Gitea
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_URL: git.fossy.my.id
run: |
git remote add gitea https://${{ secrets.GITEA_USERNAME }}:${GITEA_TOKEN}@${GITEA_URL}/bagas/tunnel-please.git
git push gitea ${{ github.ref }} --force