7979 TAG="${{ github.event.release.tag_name }}"
8080 echo "Tag from prerelease: $TAG"
8181
82+ # Skip if tag doesn't start with v11 (this pipeline is for v11 only)
83+ if [[ ! "$TAG" =~ ^v11\. ]]; then
84+ echo "⏭️ Skipping: Tag '$TAG' is not a v11 release. This pipeline handles v11 releases only."
85+ exit 0
86+ fi
87+
8288 echo "tag=$TAG" >> $GITHUB_OUTPUT
8389 echo "environment=$ENVIRONMENT" >> $GITHUB_OUTPUT
8490 echo "cm_url=$CM_URL" >> $GITHUB_OUTPUT
@@ -115,32 +121,10 @@ jobs:
115121 fi
116122 fi
117123
118- check_go_dependencies :
119- name : Check Go Dependencies
120- runs-on : ubuntu-24.04
121- needs : [validations, setup_deployment]
122- if : ${{ needs.setup_deployment.outputs.environment == 'rc' }}
123- steps :
124- - name : Check out code
125- uses : actions/checkout@v4
126-
127- - name : Set up Go
128- uses : actions/setup-go@v5
129- with :
130- go-version : ^1.20
131-
132- - name : Configure git for private modules
133- run : |
134- git config --global url."https://${{ secrets.API_SECRET }}:x-oauth-basic@github.com/".insteadOf "https://github.com/"
135- echo "GOPRIVATE=github.com/utmstack" >> $GITHUB_ENV
136-
137- - name : Check for outdated dependencies
138- run : ${{ github.workspace }}/.github/scripts/golang-updater/golang-updater --check --discover
139-
140124 build_agent :
141125 name : Build and Sign Agent
142- needs : [check_go_dependencies, setup_deployment]
143- if : ${{ always() && (needs.check_go_dependencies.result == 'success' || needs.check_go_dependencies.result == 'skipped') && needs.setup_deployment.outputs.tag != '' }}
126+ needs : [setup_deployment]
127+ if : ${{ needs.setup_deployment.outputs.tag != '' }}
144128 runs-on : utmstack-signer
145129 steps :
146130 - name : Check out code into the right branch
@@ -204,8 +188,8 @@ jobs:
204188
205189 build_utmstack_collector :
206190 name : Build UTMStack Collector
207- needs : [check_go_dependencies, setup_deployment]
208- if : ${{ always() && (needs.check_go_dependencies.result == 'success' || needs.check_go_dependencies.result == 'skipped') && needs.setup_deployment.outputs.tag != '' }}
191+ needs : [setup_deployment]
192+ if : ${{ needs.setup_deployment.outputs.tag != '' }}
209193 runs-on : ubuntu-24.04
210194 steps :
211195 - name : Check out code into the right branch
@@ -288,8 +272,8 @@ jobs:
288272
289273 build_event_processor :
290274 name : Build Event Processor Microservice
291- needs : [check_go_dependencies, setup_deployment]
292- if : ${{ always() && (needs.check_go_dependencies.result == 'success' || needs.check_go_dependencies.result == 'skipped') && needs.setup_deployment.outputs.tag != '' }}
275+ needs : [setup_deployment]
276+ if : ${{ needs.setup_deployment.outputs.tag != '' }}
293277 runs-on : ubuntu-24.04
294278 steps :
295279 - name : Check out code into the right branch
@@ -314,8 +298,8 @@ jobs:
314298 cd ${{ github.workspace }}/plugins/stats; go build -o com.utmstack.stats.plugin -v .
315299 cd ${{ github.workspace }}/plugins/soc-ai; go build -o com.utmstack.soc-ai.plugin -v .
316300 cd ${{ github.workspace }}/plugins/modules-config; go build -o com.utmstack.modules-config.plugin -v .
317- cd ${{ github.workspace }}/plugins/crowdStrike ; go build -o com.utmstack.crowdstrike.plugin -v .
318- cd ${{ github.workspace }}/plugins/threadwinds-ingestion ; go build -o com.utmstack.threadwinds-ingestion .plugin -v .
301+ cd ${{ github.workspace }}/plugins/crowdstrike ; go build -o com.utmstack.crowdstrike.plugin -v .
302+ cd ${{ github.workspace }}/plugins/feeds ; go build -o com.utmstack.feeds .plugin -v .
319303
320304 - name : Prepare Dependencies for Event Processor Image
321305 run : |
0 commit comments