Skip to content

Instantly share code, notes, and snippets.

@plowsof
Last active August 13, 2024 14:48
Show Gist options
  • Save plowsof/be6d8cb587a1af1fb0e6f004c1708427 to your computer and use it in GitHub Desktop.
Save plowsof/be6d8cb587a1af1fb0e6f004c1708427 to your computer and use it in GitHub Desktop.
testing an external pipeline config file
external_ci_v1.0.1:
image: php:8.1
stage: deploy
script:
- |
apt-get -qq update &&
apt-get install -y jq &&
apt-get install git -yqq &&
apt-get install -y libyaml-dev &&
pecl install yaml &&
echo "extension=yaml.so" > /usr/local/etc/php/conf.d/add-yaml-ext.ini &&
echo "confirming hashes of validation scripts" &&
if [[ $(sha256sum .gitlab/scripts/initial_validator.sh | awk '{print $1}') != "17aeb0ec712026d2bae7085d3dbe485420c826b74b09a2b51c101e5cec8e6f3a" ]]; then
echo "Error: Hashes do not match!"
#exit 1
fi &&
if [[ $(sha256sum .gitlab/scripts/proposal_validator.php | awk '{print $1}') != "9382e20a3867ba53cd99a5d5ffea3028931ca6cedb4dad74eae11d4df70319c5" ]]; then
echo "Error: Hashes do not match!"
#exit 1
fi &&
chmod +x .gitlab/scripts/initial_validator.sh &&
./.gitlab/scripts/initial_validator.sh
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment