This commit is contained in:
parent
8671ca4672
commit
61a79d94e9
1 changed files with 3 additions and 9 deletions
12
.drone.yml
12
.drone.yml
|
|
@ -29,22 +29,16 @@ steps:
|
|||
--target base \
|
||||
--context /drone/src \
|
||||
--dockerfile Dockerfile \
|
||||
--destination "$${DESTINATION_PREFIX}:base-$${DRONE_TAG:-$DRONE_COMMIT_BRANCH}"
|
||||
--destination "$DESTINATION_PREFIX:base-$DRONE_COMMIT_SHA"
|
||||
- >
|
||||
/kaniko/executor \
|
||||
--cache=true \
|
||||
--target linters \
|
||||
--context /drone/src \
|
||||
--dockerfile Dockerfile \
|
||||
--destination "$${DESTINATION_PREFIX}:linters-$${DRONE_TAG:-$DRONE_COMMIT_BRANCH}"
|
||||
when:
|
||||
ref:
|
||||
- refs/heads/main
|
||||
- refs/heads/ci
|
||||
- refs/tags/v*
|
||||
|
||||
--destination "$DESTINATION_PREFIX:linters-$DRONE_COMMIT_SHA"
|
||||
|
||||
- name: lint
|
||||
image: "$${DESTINATION_PREFIX}:linters-$${DRONE_TAG:-$DRONE_COMMIT_BRANCH}"
|
||||
image: "$DESTINATION_PREFIX:linters-$DRONE_COMMIT_SHA"
|
||||
commands:
|
||||
- pre-commit run --all-files --color always
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue