From 1ac56a19f56948b834ee1365712cafb848c9371a Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Wed, 15 Jul 2026 10:52:53 +0300 Subject: [PATCH 1/2] =?UTF-8?q?cicd:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D1=84=D0=B0=D0=B9=D0=BB=20=D1=81=20CICD?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=D0=BC=D0=B8?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20Gitea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/workflow.yml | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .gitea/workflows/workflow.yml diff --git a/.gitea/workflows/workflow.yml b/.gitea/workflows/workflow.yml new file mode 100644 index 0000000..6a0911f --- /dev/null +++ b/.gitea/workflows/workflow.yml @@ -0,0 +1,50 @@ +name: Build and push +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '26' + + - name: Enable Corepack + run: corepack enable + + - name: Install dependencies + run: yarn install --immutable + + - name: Lint + run: yarn lint + + - name: Test + run: yarn test + + - uses: docker/setup-buildx-action@v3 + - name: Login to Gitea registry + uses: docker/login-action@v3 + with: + registry: docker.allmy.work + username: ${{ gitea.actor }} + password: ${{ secrets.REGISTRY_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: ${{ gitea.event_name != 'pull_request' }} + build-args: | + PB_PUBLIC_URL=${{ vars.PB_PUBLIC_URL }} + tags: | + docker.allmy.work/${{ gitea.repository }}:latest + docker.allmy.work/${{ gitea.repository }}:${{ gitea.sha }} + cache-from: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache + cache-to: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache,mode=max \ No newline at end of file From 3c1edad9bc75834dd73e03ecefc4b0e16c8bf6c2 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Wed, 15 Jul 2026 11:01:23 +0300 Subject: [PATCH 2/2] =?UTF-8?q?fix(cicd):=20=D0=97=D0=B0=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=20?= =?UTF-8?q?=D0=B4=D0=B5=D0=BF=D0=BB=D0=BE=D0=B9=20=D0=B2=20workflow,=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D1=81=D1=82=D0=B0=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D0=BA=D0=B0=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/workflow.yml | 46 ++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/workflow.yml b/.gitea/workflows/workflow.yml index 6a0911f..c9cd7c2 100644 --- a/.gitea/workflows/workflow.yml +++ b/.gitea/workflows/workflow.yml @@ -28,23 +28,31 @@ jobs: - name: Test run: yarn test + + - name: Build + run: yarn build - - uses: docker/setup-buildx-action@v3 - - name: Login to Gitea registry - uses: docker/login-action@v3 - with: - registry: docker.allmy.work - username: ${{ gitea.actor }} - password: ${{ secrets.REGISTRY_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: ${{ gitea.event_name != 'pull_request' }} - build-args: | - PB_PUBLIC_URL=${{ vars.PB_PUBLIC_URL }} - tags: | - docker.allmy.work/${{ gitea.repository }}:latest - docker.allmy.work/${{ gitea.repository }}:${{ gitea.sha }} - cache-from: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache - cache-to: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache,mode=max \ No newline at end of file + # publish: + # needs: [build] + # runs-on: ubuntu-latest + # if: github.ref == 'refs/heads/main' + # steps: + # - uses: docker/setup-buildx-action@v3 + # - name: Login to Gitea registry + # uses: docker/login-action@v3 + # with: + # registry: docker.allmy.work + # username: ${{ gitea.actor }} + # password: ${{ secrets.REGISTRY_TOKEN }} + # - name: Build and push + # uses: docker/build-push-action@v6 + # with: + # context: . + # push: ${{ gitea.event_name != 'pull_request' }} + # build-args: | + # PB_PUBLIC_URL=${{ vars.PB_PUBLIC_URL }} + # tags: | + # docker.allmy.work/${{ gitea.repository }}:latest + # docker.allmy.work/${{ gitea.repository }}:${{ gitea.sha }} + # cache-from: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache + # cache-to: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache,mode=max \ No newline at end of file