From a6c717777e884f05f72f7aea0e898cd37d91ebe4 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sun, 21 Dec 2025 09:53:58 -0500 Subject: [PATCH] Build yaml plugin separately with fingerprint passthrough --- .gitlab-ci.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1d3168b7..a8c89fb7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,19 +41,27 @@ build_sshpiper: - cd $CI_PROJECT_DIR # Initialize submodules (crypto fork) - git submodule update --init --recursive - # Build sshpiperd with yaml plugin + # Build sshpiperd - $GOROOT/bin/go build -tags full -o sshpiperd ./cmd/sshpiperd - | if [ $? -ne 0 ]; then - echo "Failed to build sshpiper. Aborting." + echo "Failed to build sshpiperd. Aborting." exit 1 fi - - echo "sshpiper built successfully." + - echo "sshpiperd built successfully." + # Build yaml plugin (separate binary, required for fingerprint passthrough) + - $GOROOT/bin/go build -tags full -o yaml ./plugin/yaml + - | + if [ $? -ne 0 ]; then + echo "Failed to build yaml plugin. Aborting." + exit 1 + fi + - echo "yaml plugin built successfully." - ./sshpiperd --help 2>&1 | head -20 || true - # Push sshpiper binary to salt master via minionfs for distribution to minions - - echo "Pushing sshpiper binary to salt master via minionfs..." + # Push both binaries to salt master via minionfs for distribution to minions + - echo "Pushing sshpiper binaries to salt master via minionfs..." - mkdir -p $HOME/sshpiper-dist - - tar -czvf $HOME/sshpiper-dist/sshpiper.tar.gz -C $CI_PROJECT_DIR sshpiperd + - tar -czvf $HOME/sshpiper-dist/sshpiper.tar.gz -C $CI_PROJECT_DIR sshpiperd yaml - echo "$(git rev-parse --short HEAD)" > $HOME/sshpiper-dist/commit-hash.txt - ls -la $HOME/sshpiper-dist/ - sudo /opt/salt-call-put-artifacts-onto-salt-master.sh $HOME/sshpiper-dist @@ -61,4 +69,5 @@ build_sshpiper: artifacts: paths: - sshpiperd + - yaml expire_in: 1 week