return state
This commit is contained in:
parent
ba9fe4488f
commit
8169226f91
@ -8,28 +8,28 @@ on:
|
||||
- 'staging'
|
||||
|
||||
jobs:
|
||||
Validate:
|
||||
runs-on: [hubstaging]
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: http://gitea.pena:3000/PenaDevops/actions.git/checkout@v1
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.23'
|
||||
|
||||
- name: Run Validator
|
||||
run: |
|
||||
cd cmd/validator
|
||||
go build -o validator .
|
||||
./validator
|
||||
# ошибка если возникла то прервать пайплайн
|
||||
env:
|
||||
MONGO_HOST: ${{ secrets.BB_MONGO_URI }}
|
||||
# Validate:
|
||||
# runs-on: [hubstaging]
|
||||
# steps:
|
||||
# - name: Check out repository code
|
||||
# uses: http://gitea.pena:3000/PenaDevops/actions.git/checkout@v1
|
||||
#
|
||||
# - name: Setup Go
|
||||
# uses: actions/setup-go@v3
|
||||
# with:
|
||||
# go-version: '1.23'
|
||||
#
|
||||
# - name: Run Validator
|
||||
# run: |
|
||||
# cd cmd/validator
|
||||
# go build -o validator .
|
||||
# ./validator
|
||||
# # ошибка если возникла то прервать пайплайн
|
||||
# env:
|
||||
# MONGO_HOST: ${{ secrets.BB_MONGO_URI }}
|
||||
CreateImage:
|
||||
runs-on: [hubstaging]
|
||||
needs: Validate
|
||||
# needs: Validate
|
||||
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.4-p7
|
||||
with:
|
||||
runner: hubstaging
|
||||
@ -38,8 +38,8 @@ jobs:
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
DeployService:
|
||||
runs-on: [hubstaging]
|
||||
needs: [Validate,CreateImage]
|
||||
# needs: [CreateImage]
|
||||
# needs: [Validate,CreateImage]
|
||||
needs: [CreateImage]
|
||||
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.3
|
||||
with:
|
||||
runner: hubstaging
|
||||
|
@ -1,11 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Hello World")
|
||||
log.Fatal("CHECK WORKFLOW")
|
||||
}
|
Loading…
Reference in New Issue
Block a user