WIP
This commit is contained in:
parent
6f43db433d
commit
281c9d8412
2 changed files with 51 additions and 2 deletions
|
@ -12,7 +12,9 @@ steps:
|
||||||
password:
|
password:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
repo: git.verdigado.com/${CI_REPO,,}
|
repo: git.verdigado.com/${CI_REPO,,}
|
||||||
tag: 'latest'
|
tags:
|
||||||
|
- 'latest'
|
||||||
|
- ${CI_COMMIT_SHA}
|
||||||
|
|
||||||
build-branch:
|
build-branch:
|
||||||
when:
|
when:
|
||||||
|
@ -28,4 +30,15 @@ steps:
|
||||||
password:
|
password:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
repo: git.verdigado.com/${CI_REPO,,}
|
repo: git.verdigado.com/${CI_REPO,,}
|
||||||
tag: ${CI_COMMIT_BRANCH}
|
tags:
|
||||||
|
- ${CI_COMMIT_BRANCH}
|
||||||
|
- ${CI_COMMIT_SHA}
|
||||||
|
|
||||||
|
sleep:
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
depends_on:
|
||||||
|
- build-branch
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- sleep 60
|
36
.woodpecker/.test.yaml
Normal file
36
.woodpecker/.test.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
skip_clone: true
|
||||||
|
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build
|
||||||
|
|
||||||
|
variables:
|
||||||
|
- &image 'git.verdigado.com/verdigado-images/container-pre-commit:${CI_COMMIT_SHA}'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
salt clone:
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
settings:
|
||||||
|
remote: https://git.verdigado.com/verdigado-Privileged/Salt.git
|
||||||
|
path: salt
|
||||||
|
sha: ''
|
||||||
|
ref: refs/heads/master
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
debug:
|
||||||
|
image: alpine
|
||||||
|
environment:
|
||||||
|
test: *image
|
||||||
|
commands:
|
||||||
|
- 'echo image: *image'
|
||||||
|
- 'echo $test'
|
||||||
|
|
||||||
|
salt pre-commit:
|
||||||
|
image: *image
|
||||||
|
environment:
|
||||||
|
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
|
||||||
|
commands:
|
||||||
|
- cd salt
|
||||||
|
- pre-commit run --all-files
|
Loading…
Reference in a new issue