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:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
if: 0
|
|
||||||
name: Run golangci-lint
|
name: Run golangci-lint
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
@@ -40,7 +39,6 @@ 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
|
||||||
@@ -65,11 +63,10 @@ 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:
|
||||||
@@ -142,7 +139,7 @@ jobs:
|
|||||||
rules:
|
rules:
|
||||||
- if: github.event_name == 'push' && github.ref_type == 'tag'
|
- if: github.event_name == 'push' && github.ref_type == 'tag'
|
||||||
when: never
|
when: never
|
||||||
# needs: lint
|
needs: lint
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout репозитория
|
- name: Checkout репозитория
|
||||||
@@ -182,14 +179,9 @@ jobs:
|
|||||||
echo "TAG_EXISTS=false" >> $GITHUB_OUTPUT
|
echo "TAG_EXISTS=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Push tag (if it doesn't exist)
|
- name: Push tag
|
||||||
if: steps.get-latest-tag.outputs.TAG_EXISTS == 'false'
|
if: steps.get-latest-tag.outputs.TAG_EXISTS == 'false'
|
||||||
run: |
|
run: |
|
||||||
git tag ${{ steps.get-latest-tag.outputs.NEW_TAG }}
|
git tag ${{ steps.get-latest-tag.outputs.NEW_TAG }}
|
||||||
git push origin ${{ 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 }}"
|
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