5 Commits

Author SHA1 Message Date
Alex Shevchuk
0acef09910 64
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Run golangci-lint (api_gateway) (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been skipped
Go Linter / Tag Commit (push) Successful in 7s
2025-09-08 15:13:54 +03:00
Alex Shevchuk
24fb916074 63
All checks were successful
Go Linter / Run golangci-lint (api_gateway) (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Has been skipped
Go Linter / Tag Commit (push) Successful in 6s
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been skipped
2025-09-08 14:55:08 +03:00
Alex Shevchuk
5aaadf4fe6 63
Some checks failed
Go Linter / Run golangci-lint (api_gateway) (push) Has been skipped
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Has been skipped
Go Linter / Tag Commit (push) Failing after 5s
2025-09-08 14:53:44 +03:00
Alex Shevchuk
30a5e8340e 63
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped
2025-09-08 14:53:13 +03:00
Alex Shevchuk
42ea0f58fd 62
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been cancelled
Go Linter / Push Docker Images (api_gateway) (push) Has been cancelled
Go Linter / Run golangci-lint (api_gateway) (push) Has been cancelled
Go Linter / Tag Commit (push) Failing after 6s
2025-09-08 14:46:35 +03:00
2 changed files with 11 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ on:
jobs:
lint:
if: 0
name: Run golangci-lint
runs-on: ubuntu-22.04
@@ -43,6 +44,7 @@ jobs:
golangci-lint run -c ./.golangci-lint.yaml --fix=false --color=always
build:
if: 0
name: Build golang services
runs-on: ubuntu-22.04
needs: lint
@@ -67,10 +69,11 @@ jobs:
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o main cmd/main.go
push:
if: 0
name: Push Docker Images
runs-on: ubuntu-22.04
needs: lint
if: ${{ gitea.ref == 'refs/heads/master' || gitea.ref == 'refs/heads/release' }}
# if: ${{ gitea.ref == 'refs/heads/master' || gitea.ref == 'refs/heads/release' }}
strategy:
matrix:
@@ -140,6 +143,10 @@ jobs:
tag:
name: Tag Commit
runs-on: ubuntu-22.04
rules:
- if: $CI_COMMIT_TAG
when: never
- when: always
# needs: lint
steps:
@@ -153,6 +160,7 @@ jobs:
run: |
git fetch --tags
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.0')
echo $LATEST_TAG
if [[ $LATEST_TAG =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
MAJOR=${BASH_REMATCH[1]}
@@ -164,6 +172,8 @@ jobs:
PATCH=0
fi
echo $MAJOR.$MINOR.$PATCH
NEW_PATCH=$((PATCH + 1))
NEW_TAG="v${MAJOR}.${MINOR}.${NEW_PATCH}"

View File

@@ -167,4 +167,3 @@ molva-backend/
- `commit` - хеш коммита
- `date` - дата сборки