69
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Run golangci-lint (api_gateway) (push) Failing after 6m34s
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
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Run golangci-lint (api_gateway) (push) Failing after 6m34s
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:
@@ -12,7 +12,6 @@ on:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
if: 0
|
||||
name: Run golangci-lint
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
@@ -40,7 +39,6 @@ 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
|
||||
@@ -65,11 +63,10 @@ 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:
|
||||
@@ -142,7 +139,7 @@ jobs:
|
||||
rules:
|
||||
- if: github.event_name == 'push' && github.ref_type == 'tag'
|
||||
when: never
|
||||
# needs: lint
|
||||
needs: lint
|
||||
|
||||
steps:
|
||||
- name: Checkout репозитория
|
||||
@@ -182,14 +179,9 @@ jobs:
|
||||
echo "TAG_EXISTS=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Push tag (if it doesn't exist)
|
||||
- name: Push tag
|
||||
if: steps.get-latest-tag.outputs.TAG_EXISTS == 'false'
|
||||
run: |
|
||||
git tag ${{ steps.get-latest-tag.outputs.NEW_TAG }}
|
||||
git push origin ${{ steps.get-latest-tag.outputs.NEW_TAG }}
|
||||
echo "Successfully pushed tag: ${{ steps.get-latest-tag.outputs.NEW_TAG }}"
|
||||
|
||||
- name: Skip tag push (tag already exists)
|
||||
if: steps.get-latest-tag.outputs.TAG_EXISTS == 'true'
|
||||
run: |
|
||||
echo "Skipping tag push - tag ${{ steps.get-latest-tag.outputs.NEW_TAG }} already exists remotely"
|
||||
|
||||
Reference in New Issue
Block a user