From 9c8b27a48f548fffe2c6cf409a7dedc524aa10f2 Mon Sep 17 00:00:00 2001 From: mt77 Date: Fri, 11 Apr 2025 21:35:42 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.gitea/workflows/test.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 53d9a90..d2cff43 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -1,11 +1,18 @@ name: Build and Test Application -on: [push] +on: + push: + branches: + - main jobs: build: runs-on: docker steps: + # Шаг 0: Node install + - name: Install Node + run: apk add nodejs + # Шаг 1: Checkout кода - name: Checkout repository uses: actions/checkout@v3 @@ -14,7 +21,7 @@ jobs: - name: Login to Gitea Container Registry uses: docker/login-action@v3 with: - registry: $GIT_INSTANCE # Замените на адрес вашего Gitea + registry: ${{ GIT_INSTANCE }} # Замените на адрес вашего Gitea username: ${{ secrets.GIT_USERNAME }} password: ${{ secrets.GIT_TOKEN }} @@ -25,5 +32,5 @@ jobs: context: . push: true tags: | - $GIT_INSTANCE/${{ secrets.GIT_USERNAME }}/monitor:latest - $GIT_INSTANCE/${{ secrets.GIT_USERNAME }}/monitor:${{ github.sha }} + ${{ GIT_INSTANCE }}/${{ secrets.GIT_USERNAME }}/monitor:latest + ${{ GIT_INSTANCE }}/${{ secrets.GIT_USERNAME }}/monitor:${{ github.sha }}