fix(cicd): Закомментирован деплой в workflow, добавлена простая проверка сборки
Build and push / build (pull_request) Successful in 31s

This commit is contained in:
Ilia Mashkov
2026-07-15 11:01:23 +03:00
parent 1ac56a19f5
commit 3c1edad9bc
+27 -19
View File
@@ -29,22 +29,30 @@ jobs:
- name: Test - name: Test
run: yarn test run: yarn test
- uses: docker/setup-buildx-action@v3 - name: Build
- name: Login to Gitea registry run: yarn build
uses: docker/login-action@v3
with: # publish:
registry: docker.allmy.work # needs: [build]
username: ${{ gitea.actor }} # runs-on: ubuntu-latest
password: ${{ secrets.REGISTRY_TOKEN }} # if: github.ref == 'refs/heads/main'
- name: Build and push # steps:
uses: docker/build-push-action@v6 # - uses: docker/setup-buildx-action@v3
with: # - name: Login to Gitea registry
context: . # uses: docker/login-action@v3
push: ${{ gitea.event_name != 'pull_request' }} # with:
build-args: | # registry: docker.allmy.work
PB_PUBLIC_URL=${{ vars.PB_PUBLIC_URL }} # username: ${{ gitea.actor }}
tags: | # password: ${{ secrets.REGISTRY_TOKEN }}
docker.allmy.work/${{ gitea.repository }}:latest # - name: Build and push
docker.allmy.work/${{ gitea.repository }}:${{ gitea.sha }} # uses: docker/build-push-action@v6
cache-from: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache # with:
cache-to: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache,mode=max # 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