73
All checks were successful
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 / Tag Commit (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Successful in 23s

This commit is contained in:
Alex Shevchuk
2025-09-17 15:35:57 +03:00
parent e3262d588c
commit 9d4b138190

View File

@@ -14,6 +14,7 @@ jobs:
lint:
name: Run golangci-lint
runs-on: ubuntu-22.04
if: 0
strategy:
matrix:
@@ -73,7 +74,7 @@ jobs:
push:
name: Push Docker Images
runs-on: ubuntu-22.04
needs: lint
# needs: lint
if: ${{ gitea.ref == 'refs/heads/master' || gitea.ref == 'refs/heads/release' }}
strategy:
@@ -91,7 +92,7 @@ jobs:
REPO: ${{ github.repository }}
run: |
GIT_SHA=$(git rev-parse --short HEAD)
GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'none')
GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "none")
TARGET_ENV=${{ github.ref == 'refs/heads/release' && 'staging' || 'production' }}
echo "GIT_SHA=${GIT_SHA}" >> $GITHUB_OUTPUT
@@ -115,7 +116,7 @@ jobs:
GIT_TAG: ${{ steps.git-metadata.outputs.GIT_TAG }}
GIT_SHA: ${{ steps.git-metadata.outputs.GIT_SHA }}
run: |
IMAGE_TAG=$TARGET_ENV-$($GIT_TAG != 'none' && echo $GIT_TAG || echo $GIT_SHA)
IMAGE_TAG=$TARGET_ENV-$($GIT_TAG != "none" && echo $GIT_TAG || echo $GIT_SHA)
echo "IMAGE_NAME=molvaapp/${{ steps.git-metadata.outputs.REPO_NAME }}" >> $GITHUB_OUTPUT
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT