5 Commits

Author SHA1 Message Date
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
Alex Shevchuk
1fc4977d96 62
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Tag Commit (push) Failing after 6s
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
2025-09-08 14:42:26 +03:00

View File

@@ -16,6 +16,7 @@ on:
jobs: jobs:
lint: lint:
if: 0
name: Run golangci-lint name: Run golangci-lint
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@@ -43,6 +44,7 @@ jobs:
golangci-lint run -c ./.golangci-lint.yaml --fix=false --color=always golangci-lint run -c ./.golangci-lint.yaml --fix=false --color=always
build: build:
if: 0
name: Build golang services name: Build golang services
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: lint needs: lint
@@ -67,10 +69,11 @@ jobs:
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o main cmd/main.go CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o main cmd/main.go
push: push:
if: 0
name: Push Docker Images name: Push Docker Images
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: lint 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: strategy:
matrix: matrix:
@@ -153,6 +156,7 @@ jobs:
run: | run: |
git fetch --tags git fetch --tags
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.0') 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 if [[ $LATEST_TAG =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
MAJOR=${BASH_REMATCH[1]} MAJOR=${BASH_REMATCH[1]}
@@ -164,6 +168,8 @@ jobs:
PATCH=0 PATCH=0
fi fi
echo $MAJOR.$MINOR.$PATCH
NEW_PATCH=$((PATCH + 1)) NEW_PATCH=$((PATCH + 1))
NEW_TAG="v${MAJOR}.${MINOR}.${NEW_PATCH}" NEW_TAG="v${MAJOR}.${MINOR}.${NEW_PATCH}"