From f96474d03712edb32d70a0dbca4ee6b31fd2c1f0 Mon Sep 17 00:00:00 2001 From: Carlos Panato Date: Wed, 12 Jan 2022 14:21:18 +0100 Subject: [PATCH] fix tests Signed-off-by: Carlos Panato --- .github/workflows/verify-k8s.yml | 12 +++++++----- Makefile | 8 ++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/verify-k8s.yml b/.github/workflows/verify-k8s.yml index 480ea4116..77085d19d 100644 --- a/.github/workflows/verify-k8s.yml +++ b/.github/workflows/verify-k8s.yml @@ -53,7 +53,9 @@ jobs: # thus allowing us to test without bypassing tag-to-digest resolution. REGISTRY_NAME: registry.local REGISTRY_PORT: 5000 - KO_DOCKER_REPO: registry.local:5000/fulcio + KO_PREFIX: registry.local:5000/fulcio + GIT_HASH: ${{ github.sha }} + GIT_VERSION: test steps: - uses: actions/checkout@v2.4.0 @@ -134,7 +136,7 @@ jobs: - name: Deploy fulcio-dev run: | # Reduce the resource requests of Fulcio - sed -i -e 's,memory: "1G",memory: "100m",g' ${{ github.workspace }}/config/deployment.yaml + sed -i -e 's,memory: "1G",memory: "100Mi",g' ${{ github.workspace }}/config/deployment.yaml sed -i -e 's,cpu: ".5",cpu: "50m",g' ${{ github.workspace }}/config/deployment.yaml # Switch to one replica to make it easier to test the scraping of # metrics since we know all the requests then go to the same server. @@ -181,7 +183,7 @@ jobs: kubectl create ns fulcio-dev - ko apply -Bf config/ + make ko-apply kubectl wait --for=condition=Available --timeout=5m -n fulcio-dev deployment/fulcio-server @@ -189,7 +191,7 @@ jobs: - name: Run signing job run: | - DIGEST=$(ko publish .) + DIGEST=$(make ko-publish | sed -i '1d') cat <