Skip to content

Commit

Permalink
Add CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
clayoster committed Sep 15, 2024
1 parent ab62f51 commit f2ef447
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
stages:
- lint
#- test
- build

lint-pylint:
stage: lint
image: python:3.12-slim
script:
- pip install --no-cache-dir -r requirements.txt
- pip install pylint
- pylint app.py

#test-app:
# stage: test
# image: python:3.12-slim
# script:
# - pip install --no-cache-dir -r requirements.txt
# - pip install pytest pytest-flask
# - python -m pytest -v

build:
stage: build
image:
name: gcr.io/kaniko-project/executor:v1.20.0-debug
entrypoint: [""]
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
rules:
- if: $CI_COMMIT_TAG
8 changes: 8 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Documentation: https://pylint.readthedocs.io/en/latest/
[MESSAGES CONTROL]
disable=
line-too-long,
fixme,
missing-function-docstring,
missing-module-docstring,
trailing-newlines

0 comments on commit f2ef447

Please sign in to comment.