Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NGSI Linked Data
NGSI-LD
Commits
b670ab03
Unverified
Commit
b670ab03
authored
Mar 05, 2021
by
Stefan Wiedemann
Browse files
commit bundled api
parent
890c0ea4
Pipeline
#6343
failed with stages
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
b670ab03
...
...
@@ -19,9 +19,23 @@ test:
image
:
docker:19.03.12
services
:
-
ngsi-local
before_script
:
-
'
which
ssh-agent
||
(
apt-get
update
-qy
&&
apt-get
install
openssh-client
-qqy
)'
-
eval `ssh-agent -s`
-
echo "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null
# add ssh ke
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
echo "$SSH_PUBLIC_KEY" >> ~/.ssh/id_rsa.pub
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
script
:
-
scripts/setBasePath.sh https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master http://localhost:9090
-
docker run --network host -i -v ${PWD}/:/data wistefan/redocly-openapi-cli bundle /data/spec/updated/ngsi-ld-spec-open-api.json -o /data/spec/updated/full_api.json
-
docker run --network host --rm -v ${PWD}/:/local openapitools/openapi-generator-cli validate -i /local/spec/updated/full_api.json
-
docker run --network host -i -v ${PWD}/:/data wistefan/redocly-openapi-cli bundle /data/spec/updated/ngsi-ld-spec-open-api.json -o /data/spec/updated/generated/full_api.json
-
docker run --network host --rm -v ${PWD}/:/local openapitools/openapi-generator-cli validate -i /local/spec/updated/generated/full_api.json
-
git config --global user.email "${CI_EMAIL}"
-
git config --global user.name "${CI_USERNAME}"
-
git add -f /spec/updated/generated/full_api.json
-
git commit -m "Update bundled spec." || echo "No changes, nothing to commit!"
-
git remote rm origin && git remote add origin git@gitlab.com:$CI_PROJECT_PATH.git
-
git push origin HEAD:$CI_COMMIT_REF_NAME
allow_failure
:
false
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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