CI/CD
This commit is contained in:
parent
99194f8be4
commit
6f87eda86f
|
@ -0,0 +1,85 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: build-amd64
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:1.21.0-alpine3.17
|
||||
commands:
|
||||
- go get
|
||||
- CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -a -installsuffix cgo -o ./yt-gen-app-linux-386 ./main.go
|
||||
- chmod +x ./yt-gen-app-linux-386
|
||||
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o ./yt-gen-app-linux-amd64 ./main.go
|
||||
- chmod +x ./yt-gen-app-linux-amd64
|
||||
- CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -a -installsuffix cgo -o ./yt-gen-app-linux-arm ./main.go
|
||||
- chmod +x ./yt-gen-app-linux-arm
|
||||
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -installsuffix cgo -o ./yt-gen-app-linux-arm64 ./main.go
|
||||
- chmod +x ./yt-gen-app-linux-arm64
|
||||
- CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -a -installsuffix cgo -o ./yt-gen-app-windows-386.exe ./main.go
|
||||
- CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -a -installsuffix cgo -o ./yt-gen-app-windows-amd64.exe ./main.go
|
||||
|
||||
- name: gitea_release_linux-386
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea
|
||||
base_url: https://git.ymnuktech.ru
|
||||
files: yt-gen-app-linux-386
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
- name: gitea_release_linux-amd64
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea
|
||||
base_url: https://git.ymnuktech.ru
|
||||
files: yt-gen-app-linux-amd64
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
- name: gitea_release_linux-arm
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea
|
||||
base_url: https://git.ymnuktech.ru
|
||||
files: yt-gen-app-linux-arm
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
- name: gitea_release_linux-arm64
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea
|
||||
base_url: https://git.ymnuktech.ru
|
||||
files: yt-gen-app-linux-arm64
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
- name: gitea_release_windows-386
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea
|
||||
base_url: https://git.ymnuktech.ru
|
||||
files: yt-gen-app-windows-386.exe
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
- name: gitea_release_windows-amd64
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea
|
||||
base_url: https://git.ymnuktech.ru
|
||||
files: yt-gen-app-windows-amd64.exe
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
|
@ -1,6 +1,7 @@
|
|||
/dist
|
||||
/example*.json
|
||||
/example*.yml
|
||||
/__debug_bin
|
||||
/__debug_bin*
|
||||
/lib/tmpl/frontend/angular/node_modules
|
||||
/lib/tmpl/frontend/angular/src/app/module/api
|
||||
/lib/tmpl/frontend/angular/src/app/module/api
|
||||
/yt-gen-app-*
|
8
go.mod
8
go.mod
|
@ -1,9 +1,9 @@
|
|||
module git.ymnuktech.ru/ymnuk/yt-gen-app
|
||||
|
||||
go 1.20
|
||||
go 1.21
|
||||
|
||||
require (
|
||||
github.com/creasty/defaults v1.7.0 // indirect
|
||||
github.com/satori/go.uuid v1.2.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
github.com/creasty/defaults v1.7.0
|
||||
github.com/satori/go.uuid v1.2.0
|
||||
gopkg.in/yaml.v3 v3.0.1
|
||||
)
|
||||
|
|
|
@ -6,5 +6,6 @@ import (
|
|||
)
|
||||
|
||||
func PrepareMetadata(project *structs.Project) {
|
||||
project = prepare.PrepareMetadata(project)
|
||||
prepare.PrepareMetadata(project)
|
||||
// project = prepare.PrepareMetadata(project)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue