From 994f6648751f5d210ab7748e2e812fd32c73a890 Mon Sep 17 00:00:00 2001 From: erjemin Date: Sat, 17 Jan 2026 03:52:49 +0300 Subject: [PATCH] Setup CI/CD --- .gitea/workflows/docker-publish.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/docker-publish.yaml diff --git a/.gitea/workflows/docker-publish.yaml b/.gitea/workflows/docker-publish.yaml new file mode 100644 index 0000000..d4d44d5 --- /dev/null +++ b/.gitea/workflows/docker-publish.yaml @@ -0,0 +1,26 @@ +name: Build ETPGRF-site + +on: + push: + branches: ['main'] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Login to Gitea Registry + uses: docker/login-action@v2 + with: + registry: git.cube2.ru + username: ${{ github.actor }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build and push image ETPGRF-site + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: git.cube2.ru/${{ github.repository }}:latest