11name : GCP Marketplace
22on :
3+ schedule :
4+ - cron : ' 0 0 * * *'
35 push :
4- branches :
5- - master
6- - release/*
6+ # branches:
7+ # - master
8+ # - release/*
79 workflow_dispatch :
810 inputs :
911 trigger :
2931 permissions :
3032 id-token : write
3133 contents : read
32- if : ${{ github.event.inputs.trigger == 'PUSH_STAGING_DEPLOYER' || github.event.inputs.trigger == 'PUSH_PROD_DEPLOYER' || (github.ref_name == 'master' && github.event_name == 'push') }}
3334 env :
3435 GCLOUD_REGISTRY : gcr.io/sonarqube-marketplace-provider
3536 GCLOUD_PRODUCT_NAME : sonarqube-dce-staging
7677 permissions :
7778 id-token : write
7879 contents : read
79- if : ${{ github.event.inputs.trigger == 'PUSH_STAGING_DEPLOYER' || github.event.inputs.trigger == 'PUSH_PROD_DEPLOYER' || github.event_name == 'push' }}
8080 env :
8181 BASE_FOLDER : " /home/runner/.gcp/cache"
8282 KUBE_CONFIG : " /tmp/kubeconfig"
@@ -93,11 +93,11 @@ jobs:
9393 - uses : jdx/mise-action@bfb9fa0b029db830a8c570757cee683df207a6c5 # v2.4.0
9494 with :
9595 version : 2025.7.12
96- - name : Cache GCP tools
97- uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
98- with :
99- path : ${{ env.BASE_FOLDER }}
100- key : gcp-tools-${{ env.GCLOUD_CLI_VERSION }}-${{ env.MPDEV_VERSION }}
96+ # - name: Cache GCP tools
97+ # uses: SonarSource/ci-github- actions/cache@v1
98+ # with:
99+ # path: ${{ env.BASE_FOLDER }}
100+ # key: gcp-tools-${{ env.GCLOUD_CLI_VERSION }}-${{ env.MPDEV_VERSION }}
101101 - name : Setup GCP tools
102102 run : ./.github/scripts/setup.sh
103103 - id : secrets
@@ -113,9 +113,7 @@ jobs:
113113 gcloud auth activate-service-account cirrusciservice@sonarqube-marketplace-provider.iam.gserviceaccount.com --key-file /tmp/key.json --project=sonarqube-marketplace-provider
114114 gcloud auth configure-docker gcr.io --quiet
115115 gcloud container clusters get-credentials sonarqube-marketplace-staging-standard --zone=europe-west1-b --project=sonarqube-marketplace-provider
116- - name : Verify deployment
117- run : |
118- kubectl get pods
116+ kubectl get pods -A
119117 mpdev verify --deployer=$GCLOUD_REGISTRY/$GCLOUD_PRODUCT_NAME/deployer:$GCLOUD_TAG --wait_timeout=1200 --parameters='{"name":"${GCLOUD_PRODUCT_NAME}-github-test", "namespace":"test-github","ApplicationNodes.jwtSecret":"dZ0EB0KxnF++nr5+4vfTCaun/eWbv6gOoXodiAMqcFo=", "postgresql.enabled":true, "jdbcOverwrite.enabled":false }'
120118
121119 release-gcp-prod-app :
@@ -125,7 +123,7 @@ jobs:
125123 permissions :
126124 id-token : write
127125 contents : read
128- if : ${{ github.event.inputs.trigger == 'PUSH_PROD_DEPLOYER' }}
126+ if : ${{ github.event.inputs.trigger == 'PUSH_PROD_DEPLOYER' || github.event_name == 'push' || github.event_name == 'schedule' }}
129127 env :
130128 GCLOUD_REGISTRY : gcr.io/sonarsource-public
131129 GCLOUD_PRODUCT_NAME : official-sonarqube-data-center-edition
0 commit comments