Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DAACDemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syed Bilal Raees
DAACDemo
Commits
c6504e50
Commit
c6504e50
authored
Apr 04, 2023
by
Waqas Riaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
9a0b52a9
Pipeline
#4045
passed with stages
in 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
.gitlab-ci.yml
.gitlab-ci.yml
+11
-12
No files found.
.gitlab-ci.yml
View file @
c6504e50
...
@@ -22,13 +22,14 @@ build_job:
...
@@ -22,13 +22,14 @@ build_job:
-
brew install jsonnet
-
brew install jsonnet
-
jsonnet -v
-
jsonnet -v
script
:
script
:
-
|
-
echo "Starting script for deploying to Jfrog"
echo "Starting script for deploying to Jfrog"
-
files_list=$(find . -type f -name "*.jsonnet" ! -path "./grafonnet-lib/*")
files_list=$(find . -type f -name "*.jsonnet" ! -path "./grafonnet-lib/*")
-
echo "Creating directory"
echo "Creating directory"
-
mkdir grafonnet
mkdir grafonnet
-
export version=$(echo "$(cat version.txt) + 0.1" | bc)
ls
-
ls
while IFS= read -r jsonnet_file;
-
|
while IFS= read -r jsonnet_file;
do
do
echo $jsonnet_file
echo $jsonnet_file
filename=$(basename -- "$jsonnet_file")
filename=$(basename -- "$jsonnet_file")
...
@@ -37,11 +38,9 @@ build_job:
...
@@ -37,11 +38,9 @@ build_job:
JSONNET_PATH=grafonnet-lib \
JSONNET_PATH=grafonnet-lib \
jsonnet $jsonnet_file > grafonnet/$filename.json
jsonnet $jsonnet_file > grafonnet/$filename.json
done <<< "$files_list"
done <<< "$files_list"
tar -cvzf grafonnet.tar.gz grafonnet/
-
tar -cvzf grafonnet.tar.gz grafonnet/
version=$(cat version.txt)
-
echo "version.txt is `cat version.txt` and uploading version is $version"
echo $version + 0.1 | bc > version.txt
-
curl -u $ARTIFACTORY_USER:$ARTIFACTORY_PASS -T grafonnet.tar.gz "$ARTIFACTORY_URL/grafonet/$version/grafonnet.tar.gz"
version=$(cat version.txt)
curl -u $ARTIFACTORY_USER:$ARTIFACTORY_PASS -T grafonnet.tar.gz "$ARTIFACTORY_URL/grafonet/$version/grafonnet.tar.gz"
# brew install jsonnet
# brew install jsonnet
# jsonnet -v
# jsonnet -v
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment