From 659330c6a5ff4b5072cd719524aec60377562e38 Mon Sep 17 00:00:00 2001 From: Refosel Date: Sat, 28 Mar 2026 00:28:44 +0300 Subject: [PATCH] Add GitHub Actions workflow for Gitea push --- .github/workflows/push.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..e01094a --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,32 @@ +name: Build and Push to Gitea + +on: + push: + branches: [master] + paths: + - 'games/**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Gitea Container Registry + uses: docker/login-action@v3 + with: + registry: gitea.refoseltw.ru + username: ${{ secrets.GITEA_USERNAME }} + password: ${{ secrets.GITEA_TOKEN }} + + - name: Build and Push games:source + uses: docker/build-push-action@v5 + with: + context: ./games/source + push: true + tags: gitea.refoseltw.ru/rtw/games:source