Build yaml plugin separately with fingerprint passthrough
This commit is contained in:
parent
5370758c30
commit
a6c717777e
1 changed files with 15 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue