This commit is contained in:
parent
6f43db433d
commit
014027c195
1 changed files with 20 additions and 28 deletions
|
@ -1,31 +1,23 @@
|
||||||
steps:
|
steps:
|
||||||
build-main:
|
test-1:
|
||||||
when:
|
image: alpine
|
||||||
- event: push
|
commands:
|
||||||
branch: main
|
- mkdir salt
|
||||||
image: woodpeckerci/plugin-docker-buildx:4.0.0@sha256:9d24b71c37d7a958d79252e608c4d1a04b02f2e74d4e26003b43e0830038bde0
|
- ls -la
|
||||||
pull: true
|
|
||||||
settings:
|
|
||||||
platforms: linux/amd64
|
|
||||||
registry: ${CI_FORGE_URL}
|
|
||||||
username: WoodpeckerCI
|
|
||||||
password:
|
|
||||||
from_secret: gitea_token
|
|
||||||
repo: git.verdigado.com/${CI_REPO,,}
|
|
||||||
tag: 'latest'
|
|
||||||
|
|
||||||
build-branch:
|
clone-salt:
|
||||||
when:
|
image: woodpeckerci/plugin-git
|
||||||
- event: push
|
|
||||||
branch:
|
|
||||||
exclude: ['main']
|
|
||||||
image: woodpeckerci/plugin-docker-buildx:4.0.0@sha256:9d24b71c37d7a958d79252e608c4d1a04b02f2e74d4e26003b43e0830038bde0
|
|
||||||
pull: true
|
|
||||||
settings:
|
settings:
|
||||||
platforms: linux/amd64
|
remote: https://git.verdigado.com/verdigado-Privileged/Salt.git
|
||||||
registry: ${CI_FORGE_URL}
|
path: salt
|
||||||
username: WoodpeckerCI
|
sha: ''
|
||||||
password:
|
ref: refs/heads/master
|
||||||
from_secret: gitea_token
|
branch: master
|
||||||
repo: git.verdigado.com/${CI_REPO,,}
|
|
||||||
tag: ${CI_COMMIT_BRANCH}
|
test-2:
|
||||||
|
image: git.verdigado.com/verdigado-images/container-pre-commit:latest
|
||||||
|
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