This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cicd_before_running: &cicd_before_running | | |
function prereq() { | |
echo "Preparing environment" | |
## Login to Harbor registry | |
echo "$DOCKER_PASSWORD" | docker login docker-registry.kaliop.net -u "$DOCKER_USER" --password-stdin | |
## Run ssh-agent (inside the build environment) | |
eval $(ssh-agent -s) | |
## Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store | |
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null | |
echo "$SSH_ANCA_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null |