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 \
|
--target base \
|
||||||
--context /drone/src \
|
--context /drone/src \
|
||||||
--dockerfile Dockerfile \
|
--dockerfile Dockerfile \
|
||||||
--destination "$${DESTINATION_PREFIX}:base-$${DRONE_TAG:-$DRONE_COMMIT_BRANCH}"
|
--destination "$DESTINATION_PREFIX:base-$DRONE_COMMIT_SHA"
|
||||||
- >
|
- >
|
||||||
/kaniko/executor \
|
/kaniko/executor \
|
||||||
--cache=true \
|
--cache=true \
|
||||||
--target linters \
|
--target linters \
|
||||||
--context /drone/src \
|
--context /drone/src \
|
||||||
--dockerfile Dockerfile \
|
--dockerfile Dockerfile \
|
||||||
--destination "$${DESTINATION_PREFIX}:linters-$${DRONE_TAG:-$DRONE_COMMIT_BRANCH}"
|
--destination "$DESTINATION_PREFIX:linters-$DRONE_COMMIT_SHA"
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- refs/heads/ci
|
|
||||||
- refs/tags/v*
|
|
||||||
|
|
||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
image: "$${DESTINATION_PREFIX}:linters-$${DRONE_TAG:-$DRONE_COMMIT_BRANCH}"
|
image: "$DESTINATION_PREFIX:linters-$DRONE_COMMIT_SHA"
|
||||||
commands:
|
commands:
|
||||||
- pre-commit run --all-files --color always
|
- pre-commit run --all-files --color always
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue