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
bfde5dc5
Commit
bfde5dc5
authored
Apr 04, 2023
by
Waqas Riaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
8d4dafed
Pipeline
#4032
passed with stages
in 16 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
.gitlab-ci.yml
.gitlab-ci.yml
+3
-9
No files found.
.gitlab-ci.yml
View file @
bfde5dc5
...
@@ -27,7 +27,7 @@ build_job:
...
@@ -27,7 +27,7 @@ build_job:
version=$(cat version.txt)
version=$(cat version.txt)
echo $version + 0.1 | bc > version.txt
echo $version + 0.1 | bc > version.txt
version=$(cat version.txt)
version=$(cat version.txt)
curl -u $ARTIFACTORY_USER:$ARTIFACTORY_PASS -T grafonnet.tar.gz "
https://absgraffana.jfrog.io/artifactory
/grafonet/$version/grafonnet.tar.gz"
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
...
@@ -38,16 +38,11 @@ deploy_job:
...
@@ -38,16 +38,11 @@ deploy_job:
stage
:
deploy
stage
:
deploy
script
:
script
:
-
export version=$(echo "$(cat version.txt) + 0.1" | bc)
-
export version=$(echo "$(cat version.txt) + 0.1" | bc)
-
export ARTIFACT_URL="https://absgraffana.jfrog.io/artifactory/grafonet/$version/grafonnet.tar.gz"
-
mkdir -p build/$CI_BUILD_ID
-
mkdir -p build/$CI_BUILD_ID
-
cd build/$CI_BUILD_ID
-
cd build/$CI_BUILD_ID
#curl -o "https://absgraffana.jfrog.io/ui/native/grafonet/2.8" -X GET -H "Content-Type
:
application/json" -vvv --output test.tar
-
curl -O -u $ARTIFACTORY_USER:$ARTIFACTORY_PASS "$ARTIFACTORY_URL/grafonet/$version/grafonnet.tar.gz"
#curl -u $ARTIFACTORY_USER:$ARTIFACTORY_PASS -X GET -oL "/https://absgraffana.jfrog.io/ui/native/grafonet/2.8/" -H 'Content-Type:application/json'
#curl -u $ARTIFACTORY_USER:$ARTIFACTORY_PASS "https://absgraffana.jfrog.io/artifactory/grafonet/2.8/grafonnet.tar.gz" -XPOST -T grafonnet.tar.gz -vvv --output grafonnet.tar.gz
-
curl -O -u $ARTIFACTORY_USER:$ARTIFACTORY_PASS "https://absgraffana.jfrog.io/artifactory/grafonet/$version/grafonnet.tar.gz"
-
ls -larth
-
ls -larth
-
pwd
-
pwd
-
printenv
-
tar -xzvf grafonnet.tar.gz
-
tar -xzvf grafonnet.tar.gz
-
cd grafonnet
-
cd grafonnet
-
ls -larth
-
ls -larth
...
@@ -61,8 +56,7 @@ deploy_job:
...
@@ -61,8 +56,7 @@ deploy_job:
-H "Authorization: Bearer $TOKEN" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Content-Type: application/json" \
-d "$DASHBOARD" \
-d "$DASHBOARD" \
http://localhost:3000/api/dashboards/db
$GRAFANA_URL/api/dashboards/db
sleep 2
echo "\n"
echo "\n"
done
done
#grafonnet.tar.gz
#grafonnet.tar.gz
...
...
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