Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaft
Portal
Commits
10e8acb6
Commit
10e8acb6
authored
5 months ago
by
Jakob Moser
Browse files
Options
Downloads
Patches
Plain Diff
Add linter for OpenAPI
parent
e4a1e5f8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#6723
passed with warnings
5 months ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+11
-3
11 additions, 3 deletions
.gitlab-ci.yml
with
11 additions
and
3 deletions
.gitlab-ci.yml
+
11
−
3
View file @
10e8acb6
#
* `.gitlab-ci.yml` file
copied and modified from the GitLab Documentation (as of 2021-01-10, the contents of the script seem to have changed by now)
#
This snippet is
copied and modified from the GitLab Documentation (as of 2021-01-10, the contents of the script seem to have changed by now)
# * Title of the documentation page: "Building a Docker image with kaniko"
# * Author: (c) 2011-present GitLab B.V.
# * URL: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html#building-a-docker-image-with-kaniko
# * License: CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0)
docker-build
:
build-docker
:
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
...
...
@@ -17,3 +16,12 @@ docker-build:
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only
:
-
master
# End of adapted snippet
lint-openapi
:
image
:
name
:
redocly/cli
entrypoint
:
[
"
"
]
stage
:
test
script
:
openapi lint portal/static/docs/api/v0/openapi-spec.yaml
allow_failure
:
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment