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 }}