File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 BAKE_SECRETS :
4545 required : false
4646 description : ' Build secrets in docker secret format'
47+ REGISTRY_CA_CERT :
48+ required : false
49+ description : ' CA certificate for registry TLS verification (PEM format)'
4750 outputs :
4851 build_id :
4952 description : ' Build identifier (run_number-sha)'
9093 echo "GIT_ORIGIN=${{ github.server_url }}/${{ github.repository }}" >> $GITHUB_ENV
9194 echo "GIT_REVISION=${GITHUB_SHA}" >> $GITHUB_ENV
9295
96+ - name : Install registry CA certificate
97+ if : ${{ secrets.REGISTRY_CA_CERT != '' }}
98+ run : |
99+ # Add CA to system trust store
100+ echo "${{ secrets.REGISTRY_CA_CERT }}" | sudo tee /usr/local/share/ca-certificates/registry-ca.crt
101+ sudo update-ca-certificates
102+
103+ # Add CA to Docker daemon for registry access
104+ sudo mkdir -p /etc/docker/certs.d/${{ inputs.registry_host }}
105+ echo "${{ secrets.REGISTRY_CA_CERT }}" | sudo tee /etc/docker/certs.d/${{ inputs.registry_host }}/ca.crt
106+
93107 - name : Set up Docker Buildx
94108 uses : docker/setup-buildx-action@v3
95109
You can’t perform that action at this time.
0 commit comments