Обновить .gitea/workflows/test.yml
Some checks failed
Build and Test Application / build (push) Failing after 7s
Some checks failed
Build and Test Application / build (push) Failing after 7s
This commit is contained in:
parent
321f927de4
commit
783e4c1e4d
@ -8,23 +8,11 @@ jobs:
|
|||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Шаг 1: Установка Node.js
|
# Шаг 1: Checkout кода
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: '20'
|
|
||||||
|
|
||||||
# Шаг 2: Установка зависимостей и сборка
|
|
||||||
- name: Install dependencies and build
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
# Шаг 3: Checkout кода
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Шаг 4: Логин в Docker Registry (Gitea)
|
# Шаг 2: Логин в Docker Registry (Gitea)
|
||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@ -32,7 +20,7 @@ jobs:
|
|||||||
username: ${{ secrets.GIT_USERNAME }}
|
username: ${{ secrets.GIT_USERNAME }}
|
||||||
password: ${{ secrets.GIT_TOKEN }}
|
password: ${{ secrets.GIT_TOKEN }}
|
||||||
|
|
||||||
# Шаг 5: Сборка и пуш Docker образа
|
# Шаг 3: Сборка и пуш Docker образа
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user