Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update unit test task #36

Merged
merged 5 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tekton/timestamp-authority-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .tekton/timestamp-authority-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .tekton/tsa-unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand Down