WIP
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Henrik HerHde Huettemann 2024-06-20 16:39:03 +02:00
parent 6f43db433d
commit fc7e412027
Signed by: HueHe
GPG key ID: 68FE5FEEBF1EAF5B
2 changed files with 62 additions and 2 deletions

View file

@ -12,7 +12,9 @@ steps:
password:
from_secret: gitea_token
repo: git.verdigado.com/${CI_REPO,,}
tag: 'latest'
tags:
- 'latest'
- ${CI_COMMIT_SHA}
build-branch:
when:
@ -28,4 +30,6 @@ steps:
password:
from_secret: gitea_token
repo: git.verdigado.com/${CI_REPO,,}
tag: ${CI_COMMIT_BRANCH}
tags:
- ${CI_COMMIT_BRANCH}
- ${CI_COMMIT_SHA}

56
.woodpecker/.test.yaml Normal file
View file

@ -0,0 +1,56 @@
skip_clone: true
when:
- event: push
depends_on:
- build
variables:
- &image 'git.verdigado.com/verdigado-images/container-pre-commit:${CI_COMMIT_SHA}'
steps:
await-image:
image: alpine
environment:
IMAGE: *image
commands:
- apk add --update --no-cache img
- 'while !(( img pull $IMAGE 2>&1 | grep -q "Error: failed to unmount" )) ; do echo "Awaiting image $IMAGE..."; sleep 3; done'
- echo 'found.'
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
salt pre-commit:
image: *image
depends_on:
- await-image
- salt clone
environment:
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
commands:
- cd salt
- pre-commit run --all-files
rocketchat2matrix clone:
image: woodpeckerci/plugin-git
settings:
remote: https://git.verdigado.com/NB-Public/rocketchat2matrix.git
path: rocketchat2matrix
sha: ''
ref: refs/heads/main
branch: master
rocketchat2matrix pre-commit:
image: *image
depends_on:
- await-image
- rocketchat2matrix clone
environment:
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
commands:
- cd rocketchat2matrix
- pre-commit run --all-files