...
 
Commits (6)
build:
stage: build
tags:
- docker
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:latest
only:
- master
build_test:
stage: build
tags:
- docker
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
except:
- master
FROM python:3-alpine
FROM python:3-buster
RUN mkdir /apps \
&& chown guest:guest /apps
RUN addgroup --system pylint \
&& adduser pylint --system --gecos "" --no-create-home --disabled-password --shell /bin/false --ingroup pylint \
&& mkdir /code \
&& chown pylint:pylint /code
WORKDIR /apps
WORKDIR /code
RUN pip install --upgrade git+https://github.com/oca/pylint-odoo.git
RUN pip install pylint-odoo
USER guest
USER pylint
ENTRYPOINT ["pylint", "--load-plugins=pylint_odoo", "--enable=odoolint"]