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
@@ -28,23 +28,31 @@ jobs:
- name: Test - name: Test
run: yarn test run: yarn test
- name: Build
run: yarn build
- uses: docker/setup-buildx-action@v3 # publish:
- name: Login to Gitea registry # needs: [build]
uses: docker/login-action@v3 # runs-on: ubuntu-latest
with: # if: github.ref == 'refs/heads/main'
registry: docker.allmy.work # steps:
username: ${{ gitea.actor }} # - uses: docker/setup-buildx-action@v3
password: ${{ secrets.REGISTRY_TOKEN }} # - name: Login to Gitea registry
- name: Build and push # uses: docker/login-action@v3
uses: docker/build-push-action@v6 # with:
with: # registry: docker.allmy.work
context: . # username: ${{ gitea.actor }}
push: ${{ gitea.event_name != 'pull_request' }} # password: ${{ secrets.REGISTRY_TOKEN }}
build-args: | # - name: Build and push
PB_PUBLIC_URL=${{ vars.PB_PUBLIC_URL }} # uses: docker/build-push-action@v6
tags: | # with:
docker.allmy.work/${{ gitea.repository }}:latest # context: .
docker.allmy.work/${{ gitea.repository }}:${{ gitea.sha }} # push: ${{ gitea.event_name != 'pull_request' }}
cache-from: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache # build-args: |
cache-to: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache,mode=max # 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