Обновить .gitea/workflows/test.yml

This commit is contained in:
mt77 2025-04-11 21:35:42 +05:00
parent 03b13ce0c0
commit 9c8b27a48f

View File

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