diff --git a/npm-packages/README.md b/npm-packages/README.md new file mode 100644 index 0000000000000000000000000000000000000000..29dc10029e27551e9712670261c7a5b3e14f60e6 --- /dev/null +++ b/npm-packages/README.md @@ -0,0 +1,41 @@ +# Include jobs from external YAML files + +You can include the jobs in this repository's YAML files as follows: + +```yml +include: + - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/npm-packages/artifactory.yml + - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/npm-packages/build.yml + - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/npm-packages/pages.yml +``` + +## jobs + +### build + +Check if dependencies exists. + +### artifactory + +Publish the package to Artifactory. + +### pages + +Trys to run the build process, and creates a dist folder with the result. Allowing to display an static website. + +## Example + +An example of a valid .gitlab-ci.yml can be: + +```yml +include: + - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/npm-packages/build.yml + - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/npm-packages/artifactory.yml + +stages: + - build + - deploy + + + +``` diff --git a/npm-packages/gitlab-ci.yml b/npm-packages/gitlab-ci.yml deleted file mode 100644 index 4d215b6d44f6e24b7a69b1f7bcd996bf6e05f8b6..0000000000000000000000000000000000000000 --- a/npm-packages/gitlab-ci.yml +++ /dev/null @@ -1,20 +0,0 @@ -image: $ACR_URL/node:12 -before_script: - - npm -g config set user root - - npm install -g jfrog-cli-go -cache: - paths: - - node_modules/ -job: - tags: - - docker - script: - - jfrog rt c import $ARTIFACTORY_CI_CONFIGURATION - - jfrog rt use TRIArtifact - - jfrog rt ping - - jfrog rt npm-install --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID - - jfrog rt npm-publish --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID - - jfrog rt bce $CI_PROJECT_NAME $CI_JOB_ID - - jfrog rt bp $CI_PROJECT_NAME $CI_JOB_ID - only: - - tags