diff --git a/.tekton/timestamp-authority-pull-request.yaml b/.tekton/timestamp-authority-pull-request.yaml index 737b6d4f..2b0cd816 100644 --- a/.tekton/timestamp-authority-pull-request.yaml +++ b/.tekton/timestamp-authority-pull-request.yaml @@ -379,7 +379,7 @@ spec: - name: name value: go-unit-test - name: bundle - value: quay.io/securesign/tsa-unit-test@sha256:8a1900ca9afdf161004f5f1b21cbca4ba063445c578d4aff63a7d067016fc2a8 + value: quay.io/securesign/tsa-unit-test@sha256:9e6a48c07c34027656f25d0a0971ea38547135995a2151dfebf18210abfc773f - name: kind value: task resolver: bundles diff --git a/.tekton/timestamp-authority-push.yaml b/.tekton/timestamp-authority-push.yaml index e375851f..d7558e29 100644 --- a/.tekton/timestamp-authority-push.yaml +++ b/.tekton/timestamp-authority-push.yaml @@ -376,7 +376,7 @@ spec: - name: name value: go-unit-test - name: bundle - value: quay.io/securesign/tsa-unit-test@sha256:8a1900ca9afdf161004f5f1b21cbca4ba063445c578d4aff63a7d067016fc2a8 + value: quay.io/securesign/tsa-unit-test@sha256:9e6a48c07c34027656f25d0a0971ea38547135995a2151dfebf18210abfc773f - name: kind value: task resolver: bundles diff --git a/.tekton/tsa-unit-test.yaml b/.tekton/tsa-unit-test.yaml index 1030ab92..5c158902 100644 --- a/.tekton/tsa-unit-test.yaml +++ b/.tekton/tsa-unit-test.yaml @@ -13,11 +13,10 @@ spec: workingDir: $(workspaces.source.path)/source script: | #!/usr/bin/env sh - git config --global --add safe.directory /workspace/source - CGO_ENABLED=0 go build -trimpath -o bin/timestamp-cli ./cmd/timestamp-cli - CGO_ENABLED=0 go build -trimpath -o bin/timestamp-server ./cmd/timestamp-server + CGO_ENABLED=0 go build -buildvcs=false -trimpath -o bin/timestamp-cli ./cmd/timestamp-cli + CGO_ENABLED=0 go build -buildvcs=false -trimpath -o bin/timestamp-server ./cmd/timestamp-server go test ./... - + # This file bundles the unit tests for the timestamp-authority. # If any changes are made to this file, it must be pushed to Quay using the following command: # 'tkn bundle push quay.io/securesign/tsa-unit-test:v1 -f .tekton/tsa-unit-test.yaml'.