ci: build api plugin alongside yaml plugin
Add api plugin to build artifacts for multi-pool SSH routing.
This commit is contained in:
parent
00bb865175
commit
1558d8cf44
1 changed files with 10 additions and 1 deletions
|
|
@ -57,11 +57,19 @@ build_sshpiper:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- echo "yaml plugin built successfully."
|
- echo "yaml plugin built successfully."
|
||||||
|
# Build api plugin (for multi-pool routing via API lookup)
|
||||||
|
- $GOROOT/bin/go build -tags full -o api ./plugin/api
|
||||||
|
- |
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Failed to build api plugin. Aborting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
- echo "api plugin built successfully."
|
||||||
- ./sshpiperd --help 2>&1 | head -20 || true
|
- ./sshpiperd --help 2>&1 | head -20 || true
|
||||||
# Push both binaries to salt master via minionfs for distribution to minions
|
# Push both binaries to salt master via minionfs for distribution to minions
|
||||||
- echo "Pushing sshpiper binaries to salt master via minionfs..."
|
- echo "Pushing sshpiper binaries to salt master via minionfs..."
|
||||||
- mkdir -p $HOME/sshpiper-dist
|
- mkdir -p $HOME/sshpiper-dist
|
||||||
- tar -czvf $HOME/sshpiper-dist/sshpiper.tar.gz -C $CI_PROJECT_DIR sshpiperd yaml
|
- tar -czvf $HOME/sshpiper-dist/sshpiper.tar.gz -C $CI_PROJECT_DIR sshpiperd yaml api
|
||||||
- echo "$(git rev-parse --short HEAD)" > $HOME/sshpiper-dist/commit-hash.txt
|
- echo "$(git rev-parse --short HEAD)" > $HOME/sshpiper-dist/commit-hash.txt
|
||||||
- ls -la $HOME/sshpiper-dist/
|
- ls -la $HOME/sshpiper-dist/
|
||||||
- sudo /opt/salt-call-put-artifacts-onto-salt-master.sh $HOME/sshpiper-dist
|
- sudo /opt/salt-call-put-artifacts-onto-salt-master.sh $HOME/sshpiper-dist
|
||||||
|
|
@ -70,4 +78,5 @@ build_sshpiper:
|
||||||
paths:
|
paths:
|
||||||
- sshpiperd
|
- sshpiperd
|
||||||
- yaml
|
- yaml
|
||||||
|
- api
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue