Commits (3)
......@@ -15,7 +15,9 @@ Build api-tests docker image:
rules:
- changes:
- api-tests/Dockerfile
- api-tests/*
- api-tests/scripts/*
- api-tests/extensions/*
- api-tests/requirements.txt
Build OpenAPI validator docker image:
stage: build
......
# CI/CD:
#
# VALIDATION triggered by:
# - any (branch commit)
#
workflow:
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_TAG
variables:
PIPELINE_SCRIPTS_PROJECT_ID: 680
stages:
- validation
Validate OpenAPIs:
stage: validation
script:
- echo 'Validate OpenAPIs'
- docker run -v "$(pwd)":/work -u $(id -u):$(id -g) openapivalidator "/work" "/storage" "$filter"
artifacts:
when: on_success
paths:
- build/*
\ No newline at end of file
......@@ -27,10 +27,6 @@ Testing:
script:
- echo "Testing"
- docker run $IMG_NAME
# artifacts:
# when: always
# paths:
# - debugPuccini.log
Building HTML tree:
stage: HTML
......
# CI/CD:
#
# VALIDATION triggered by:
# - any (branch commit)
#
workflow:
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_TAG
variables:
PIPELINE_SCRIPTS_PROJECT_ID: 680
stages:
- validation
Validate OpenAPIs:
stage: validation
script:
- echo 'Validate OpenAPIs'
- docker run -v "$(pwd)":/work -u $(id -u):$(id -g) openapivalidator "/work" "/storage" "$filter"
artifacts:
when: on_success
paths:
- build/*
\ No newline at end of file
# CI/CD:
#
# VALIDATION triggered by:
# - any (branch commit)
#
workflow:
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_TAG
variables:
PIPELINE_SCRIPTS_PROJECT_ID: 680
stages:
- validation
Validate OpenAPIs:
stage: validation
script:
- echo 'Validate OpenAPIs'
- docker run -v "$(pwd)":/work -u $(id -u):$(id -g) openapivalidator "/work" "/storage" "$filter"
artifacts:
when: on_success
paths:
- build/*
\ No newline at end of file
# CI/CD:
#
# VALIDATION triggered by:
# - any (branch commit)
#
workflow:
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_TAG
variables:
PIPELINE_SCRIPTS_PROJECT_ID: 680
stages:
- validation
Validate OpenAPIs:
stage: validation
script:
- echo 'Validate OpenAPIs'
- docker run -v "$(pwd)":/work -u $(id -u):$(id -g) openapivalidator "/work" "/storage" "$filter"
artifacts:
when: on_success
paths:
- build/*
\ No newline at end of file
......@@ -25,7 +25,7 @@ Validate OpenAPIs:
when: on_success
paths:
- build/*
pages:
stage: publish
dependencies:
......@@ -42,7 +42,8 @@ pages:
# Zip the content and publish the zip again
- zip -r "content.zip" "public"
- mv "content.zip" "public/"
artifacts:
paths:
- public
\ No newline at end of file
- public
only:
- tags
\ No newline at end of file