diff --git a/.github/workflows/components.yaml b/.github/workflows/components.yaml index 9cf04be0c3..a770c9876b 100644 --- a/.github/workflows/components.yaml +++ b/.github/workflows/components.yaml @@ -33,7 +33,7 @@ env: components: '["ocmcli", "helminstaller", "helmdemo", "subchartsdemo", "ecrplugin"]' IMAGE_PLATFORMS: 'linux/amd64 linux/arm64' PLATFORMS: 'windows/amd64 darwin/arm64 darwin/amd64 linux/amd64 linux/arm64' - BUILDX_CACHE_PUSH: ${{ github.ref == 'refs/heads/main' }} + BUILDX_CACHE_PUSH: true BUILDX_CACHE_REF_BASE: ghcr.io/${{ github.repository }}/buildx-cache jobs: @@ -50,6 +50,9 @@ jobs: input: ${{ env.components }} build: + permissions: + contents: read + packages: write name: "Build" needs: define-matrix strategy: