test-other-repos #33
2 changed files with 69 additions and 10 deletions
|
@ -1,9 +1,7 @@
|
||||||
when:
|
|
||||||
path: '*Dockerfile*'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build-main:
|
build main:
|
||||||
when:
|
when:
|
||||||
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
image: woodpeckerci/plugin-docker-buildx:4.0.0@sha256:9d24b71c37d7a958d79252e608c4d1a04b02f2e74d4e26003b43e0830038bde0
|
image: woodpeckerci/plugin-docker-buildx:4.0.0@sha256:9d24b71c37d7a958d79252e608c4d1a04b02f2e74d4e26003b43e0830038bde0
|
||||||
pull: true
|
pull: true
|
||||||
|
@ -14,10 +12,13 @@ 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:
|
||||||
|
- event: push
|
||||||
branch:
|
branch:
|
||||||
exclude: ['main']
|
exclude: ['main']
|
||||||
image: woodpeckerci/plugin-docker-buildx:4.0.0@sha256:9d24b71c37d7a958d79252e608c4d1a04b02f2e74d4e26003b43e0830038bde0
|
image: woodpeckerci/plugin-docker-buildx:4.0.0@sha256:9d24b71c37d7a958d79252e608c4d1a04b02f2e74d4e26003b43e0830038bde0
|
||||||
|
@ -29,4 +30,6 @@ 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}
|
56
.woodpecker/.test.yaml
Normal file
56
.woodpecker/.test.yaml
Normal 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.'
|
||||||
|
|
||||||
|
clone salt:
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
settings:
|
||||||
|
remote: https://git.verdigado.com/verdigado-Privileged/Salt.git
|
||||||
|
path: salt
|
||||||
|
sha: ''
|
||||||
|
ref: refs/heads/master
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
pre-commit salt:
|
||||||
|
image: *image
|
||||||
|
depends_on:
|
||||||
|
- await-image
|
||||||
|
- clone salt
|
||||||
|
environment:
|
||||||
|
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
|
||||||
|
commands:
|
||||||
|
- cd salt
|
||||||
|
- pre-commit run --all-files
|
||||||
|
|
||||||
|
clone rocketchat2matrix:
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
settings:
|
||||||
|
remote: https://git.verdigado.com/NB-Public/rocketchat2matrix.git
|
||||||
|
path: rocketchat2matrix
|
||||||
|
sha: ''
|
||||||
|
ref: refs/heads/main
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
pre-commit rocketchat2matrix:
|
||||||
|
image: *image
|
||||||
|
depends_on:
|
||||||
|
- await-image
|
||||||
|
- clone rocketchat2matrix
|
||||||
|
environment:
|
||||||
|
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
|
||||||
|
commands:
|
||||||
|
- cd rocketchat2matrix
|
||||||
|
- pre-commit run --all-files
|
Loading…
Reference in a new issue