Compare commits
1 commit
f68aa298c6
...
49d682d72c
Author | SHA1 | Date | |
---|---|---|---|
49d682d72c |
2 changed files with 55 additions and 0 deletions
35
.woodpecker/.build.yaml
Normal file
35
.woodpecker/.build.yaml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
steps:
|
||||||
|
build-main:
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
image: woodpeckerci/plugin-docker-buildx:4.0.0@sha256:9d24b71c37d7a958d79252e608c4d1a04b02f2e74d4e26003b43e0830038bde0
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
platforms: linux/amd64
|
||||||
|
registry: ${CI_FORGE_URL}
|
||||||
|
username: WoodpeckerCI
|
||||||
|
password:
|
||||||
|
from_secret: gitea_token
|
||||||
|
repo: git.verdigado.com/${CI_REPO,,}
|
||||||
|
tags:
|
||||||
|
- 'latest'
|
||||||
|
- ${CI_COMMIT_SHA}
|
||||||
|
|
||||||
|
build-branch:
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch:
|
||||||
|
exclude: ['main']
|
||||||
|
image: woodpeckerci/plugin-docker-buildx:4.0.0@sha256:9d24b71c37d7a958d79252e608c4d1a04b02f2e74d4e26003b43e0830038bde0
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
platforms: linux/amd64
|
||||||
|
registry: ${CI_FORGE_URL}
|
||||||
|
username: WoodpeckerCI
|
||||||
|
password:
|
||||||
|
from_secret: gitea_token
|
||||||
|
repo: git.verdigado.com/${CI_REPO,,}
|
||||||
|
tags:
|
||||||
|
- ${CI_COMMIT_BRANCH}
|
||||||
|
- ${CI_COMMIT_SHA}
|
20
.woodpecker/.test.yaml
Normal file
20
.woodpecker/.test.yaml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
steps:
|
||||||
|
test-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
|
||||||
|
|
||||||
|
test-salt-pre-commit:
|
||||||
|
image: git.verdigado.com/verdigado-images/container-pre-commit:${CI_COMMIT_SHA}
|
||||||
|
environment:
|
||||||
|
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
|
||||||
|
commands:
|
||||||
|
- cd salt
|
||||||
|
- pre-commit run --all-files
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build
|
Loading…
Add table
Reference in a new issue