Обновить .gitea/workflows/test.yml
This commit is contained in:
parent
03b13ce0c0
commit
9c8b27a48f
@ -1,11 +1,18 @@
|
|||||||
name: Build and Test Application
|
name: Build and Test Application
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
# Шаг 0: Node install
|
||||||
|
- name: Install Node
|
||||||
|
run: apk add nodejs
|
||||||
|
|
||||||
# Шаг 1: Checkout кода
|
# Шаг 1: Checkout кода
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -14,7 +21,7 @@ jobs:
|
|||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: $GIT_INSTANCE # Замените на адрес вашего Gitea
|
registry: ${{ GIT_INSTANCE }} # Замените на адрес вашего Gitea
|
||||||
username: ${{ secrets.GIT_USERNAME }}
|
username: ${{ secrets.GIT_USERNAME }}
|
||||||
password: ${{ secrets.GIT_TOKEN }}
|
password: ${{ secrets.GIT_TOKEN }}
|
||||||
|
|
||||||
@ -25,5 +32,5 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
$GIT_INSTANCE/${{ secrets.GIT_USERNAME }}/monitor:latest
|
${{ GIT_INSTANCE }}/${{ secrets.GIT_USERNAME }}/monitor:latest
|
||||||
$GIT_INSTANCE/${{ secrets.GIT_USERNAME }}/monitor:${{ github.sha }}
|
${{ GIT_INSTANCE }}/${{ secrets.GIT_USERNAME }}/monitor:${{ github.sha }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user