From 430e262c842619058e8f3b80c9c2d0019c66578a Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 16 May 2026 02:51:39 -0400 Subject: [PATCH] test: add robots.txt pass to tekton Signed-off-by: Xe Iaso --- .tekton/anubis-test.yaml | 22 +++++++++++++++------- test/robots_txt/tekton.sh | 7 +++++++ 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100755 test/robots_txt/tekton.sh diff --git a/.tekton/anubis-test.yaml b/.tekton/anubis-test.yaml index e8638a85..fe97ee2a 100644 --- a/.tekton/anubis-test.yaml +++ b/.tekton/anubis-test.yaml @@ -72,7 +72,7 @@ spec: name: kaniko params: - name: IMAGE - value: registry.int.xeserv.us/xeiaso.net/site/ci:$(tasks.clone-repo.results.version) + value: $(params.docker-image-base)/anubis/ci:$(tasks.clone-repo.results.version) - name: DOCKERFILE value: ./test/ssh-ci/Dockerfile - name: EXTRA_ARGS @@ -166,24 +166,32 @@ spec: value: - ./cmd/anubis - name: integration - runAfter: ["provision-test-cluster", "go-test"] + runAfter: + - "provision-test-cluster" + - "build-assets" + - "test-anubis" matrix: params: - name: test-case value: - default-config-macro + - robots_txt taskSpec: + params: + - name: test-case + type: string workspaces: - name: repo mountPath: /src - env: - - name: KUBECONFIG - value: "$(workspaces.repo.path)/kube/config" steps: - - name: default-config-macro + - name: exec image: $(tasks.docker-build-ci.results.IMAGE_URL)@$(tasks.docker-build-ci.results.IMAGE_DIGEST) workingDir: $(workspaces.repo.path)/repo/test/$(params.test-case) - script: ./tekton.sh + script: | + ./tekton.sh + env: + - name: KUBECONFIG + value: "$(workspaces.repo.path)/kube/config" - name: teardown-cluster runAfter: ["provision-test-cluster", "go-test", "integration"] taskSpec: diff --git a/test/robots_txt/tekton.sh b/test/robots_txt/tekton.sh new file mode 100755 index 00000000..31eb4f34 --- /dev/null +++ b/test/robots_txt/tekton.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -euo pipefail + +cd "$(dirname "$0")" + +exec ./test.sh