Commit 8ac97135 authored by Syed Bilal Raees's avatar Syed Bilal Raees

deployment script

parent ef9afbd8
Pipeline #3930 failed
...@@ -4,10 +4,32 @@ stages: ...@@ -4,10 +4,32 @@ stages:
build_job: build_job:
stage: build stage: build
script: script:
- >
- brew install jsonnet # - brew install jsonnet
- jsonnet -v # - jsonnet -v
# - arch # - arch
# - echo "hello world" # - echo "hello world"
echo "Starting script for deploying to Jfrog"
files_list=$(find . -type f -name "*.jsonnet" ! -path "./grafonnet-lib/*")
echo "Creating directory"
mkdir grafonnet
ls
while IFS= read -r jsonnet_file;
do
echo $jsonnet_file
filename=$(basename -- "$jsonnet_file")
filename="${filename%.*}"
echo $filename
JSONNET_PATH=grafonnet-lib \
jsonnet $jsonnet_file > grafonnet/$filename.json
done <<< "$files_list"
tar -cvzf grafonnet.tar.gz grafonnet/
version=$(cat version.txt)
echo $version + 0.1 | bc > version.txt
version=$(cat version.txt)
tags: tags:
- ci - ci
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment