71
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Run golangci-lint (api_gateway) (push) Failing after 2m31s
Go Linter / Build golang services (api_gateway) (push) Has been skipped
Go Linter / Tag Commit (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Has been skipped

This commit is contained in:
Alex Shevchuk
2025-09-17 14:32:06 +03:00
parent 03372d7f9b
commit 61fc0d2747
22 changed files with 15486 additions and 10 deletions

View File

@@ -35,7 +35,6 @@ jobs:
- name: Run golangci-lint
run: |
go clean -modcache
go mod tidy
golangci-lint run -c ./.golangci-lint.yaml --fix=false --color=always
@@ -59,8 +58,11 @@ jobs:
go-version: 1.24
- name: Build golang services
env:
HOST: ${{ github.event.base_ref == 'refs/heads/release' && secrets.HOST_STG || secrets.HOST_PROD }}
run: |
go mod tidy
SWAGGER_HOST=${HOST} make docs
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o main cmd/main.go
push:
@@ -119,10 +121,12 @@ jobs:
IMAGE_NAME: ${{ steps.docker-metadata.outputs.IMAGE_NAME }}
IMAGE_TAG: ${{ steps.docker-metadata.outputs.IMAGE_TAG }}
CONFIG_FILE: .build/config/${{ steps.git-metadata.outputs.TARGET_ENV }}.yaml
HOST: ${{ github.event.base_ref == 'refs/heads/release' && secrets.HOST_STG || secrets.HOST_PROD }}
run: |
docker build \
--build-arg BUILD_LDFLAGS="-w -s" \
--build-arg CONFIG_FILE_PATH=$CONFIG_FILE \
--build-arg SWAGGER_HOST=$HOST \
-t $IMAGE_NAME:$IMAGE_TAG \
-t $IMAGE_NAME:latest \
.

View File

@@ -18,7 +18,7 @@ on:
jobs:
deploy:
name: Deploy to ${{ inputs.environment }}
name: Deploy
runs-on: ubuntu-22.04
env: