equinor / radix-cli

https://radix.equinor.com/docs/topic-radix-cli/#use
MIT License
7 stars 1 forks source link

Option to override useBuildCache for pipeline jobs #82

Closed satr closed 2 months ago

satr commented 10 months ago

When an option useBuildKit is configured with useBuildCache (default), it might me require to run pipeline jobs without using cache, due to caching algorithm can not always correctly detect changes.

Add an option use-build-cache for commands rx create pipeline-job to override radixconfig settings.

DoD Disable build-cache when option is not to use cache

ingeknudsen commented 10 months ago

It would be beneficial for us to have this. Our solution consist of API and a job handler, alongside the RadixConfig. Then we have 3 dependent repositories that we clone as part of the build job. Changes made to any of these three repositories will trigger a build of the main solution. Would be nice to turn of cache conditionally, instead of global which we had to do now. I.e.:

      - name: "Deploy API on Radix dev environment"
        uses: equinor/radix-github-actions@v1
        with:
          args: >
            create job
            build-deploy
            -a fotone-analysis-application-job-api
            -b dev
            --disable-build-cache
satr commented 2 months ago

Radix CLI (radix-api and github action) now has an option use-build-cache to override the option value, configured in the radixconfig.