From 18e91b13aee45c90931d0ed62b911ead1ffaa8a5 Mon Sep 17 00:00:00 2001 From: Stefan Wiedemann Date: Fri, 5 Mar 2021 12:09:42 +0100 Subject: [PATCH] commit bundled api --- .gitlab-ci.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 211fd19..5faabfb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,12 +24,6 @@ test: - 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/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@etsi.org" - - git config --global user.name "Gitlab runner" - - git add -f ${PWD}/spec/updated/generated/full_api.json - - git commit -m "Update bundled spec." || echo "No changes, nothing to commit!" - - url_host=`git remote get-url origin | sed -e "s/https:\/\/gitlab-ci-token:.*@//g"` - - git remote set-url origin "https://gitlab-ci-token:$GIT_PUSH_TOKEN@${url_host}" - - git push origin HEAD:$CI_COMMIT_REF_NAME allow_failure: false +# TODO: after gitlab update, the ci should publish the bundled api -- GitLab