From 4da0f11e3c73ed464989a106a66b7793f4372c3b Mon Sep 17 00:00:00 2001 From: Matt Moore Date: Tue, 16 Nov 2021 21:21:25 -0800 Subject: [PATCH] Use `CGO_ENABLED=1` via `.ko.yaml`. Fixes: https://github.com/sigstore/fulcio/issues/241 Signed-off-by: Matt Moore --- .github/workflows/verify-k8s.yml | 4 ---- .ko.yaml | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/verify-k8s.yml b/.github/workflows/verify-k8s.yml index 9d9ad4349..9bacc1038 100644 --- a/.github/workflows/verify-k8s.yml +++ b/.github/workflows/verify-k8s.yml @@ -132,8 +132,6 @@ jobs: sudo echo "127.0.0.1 $REGISTRY_NAME" | sudo tee -a /etc/hosts - name: Deploy fulcio-dev - env: - CGO_ENABLED: 1 run: | # Reduce the resource requests of Fulcio sed -i -e 's,memory: "1G",memory: "100m",g' ${{ github.workspace }}/config/deployment.yaml @@ -176,8 +174,6 @@ jobs: kubectl get po -n fulcio-dev - name: Run signing job - env: - CGO_ENABLED: 1 run: | DIGEST=$(ko publish .) diff --git a/.ko.yaml b/.ko.yaml index 83794ebfc..05e9eecd1 100644 --- a/.ko.yaml +++ b/.ko.yaml @@ -1 +1,5 @@ defaultBaseImage: gcr.io/distroless/base-debian10 +builds: +- main: . + env: + - CGO_ENABLED=1