Test_CI-CD/sample/pipeline.sh

9 lines
189 B
Bash
Executable File

#!/bin/bash
echo "CI: Building..."
./build.sh
echo "CI: Testing..."
./test.sh || { echo "Tests failed"; exit 1; }
echo "CD: Deploying..."
cp build.sh ../deployed-script.sh
echo "Deployed!"