diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 145be61..d4edf76 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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"