aboutsummaryrefslogtreecommitdiffstats
path: root/.woodpecker
diff options
context:
space:
mode:
authorMichael Grote2024-09-02 21:26:37 +0200
committerMichael Grote2024-09-02 21:26:37 +0200
commit49b3121b01f030784d31b0e4f860dcf3a5dc7f87 (patch)
tree0f6feeda6fb4f47c13613ff0931a822b5ea17ab3 /.woodpecker
parente1905be377cf1a0c458505f9d91b5eff31ae5918 (diff)
switch to gitea-actions
Diffstat (limited to '.woodpecker')
-rw-r--r--.woodpecker/build.yml41
-rw-r--r--.woodpecker/lint.yml41
2 files changed, 0 insertions, 82 deletions
diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml
deleted file mode 100644
index 181085b..0000000
--- a/.woodpecker/build.yml
+++ /dev/null
@@ -1,41 +0,0 @@
----
-depends_on:
- - lint
-
-clone:
- git:
- image: "woodpeckerci/plugin-git:2.5.2"
- settings:
- depth: 9999 # wird benötigt um die Commits zählen zu können
- lfs: false
- partial: false
-
-steps:
- build_and_push: # damit dieser Step laufen kann muss das Repo in der Woodpecker-GUI "privilegiert" sein
- image: "docker:27.2.0"
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
- commands:
- # https://unix.stackexchange.com/questions/748633/error-multiple-platforms-feature-is-currently-not-supported-for-docker-driver
- - docker buildx create --use --platform=linux/amd64 --name multi-platform-builder
- - docker buildx inspect --bootstrap
- - |
- docker buildx build \
- --no-cache \
- --platform=linux/amd64 \
- --push \
- --tag registry.mgrote.net/${CI_REPO_NAME}:${CI_COMMIT_BRANCH} \
- --tag registry.mgrote.net/${CI_REPO_NAME}:latest \
- --label org.opencontainers.image.url=$CI_REPO_URL \
- --label org.opencontainers.image.source=$CI_REPO_URL \
- --label org.opencontainers.image.revision=$CI_COMMIT_SHA \
- --label org.opencontainers.image.created=$DATE \
- --file Dockerfile .
- when:
- - event: [push, pull_request, cron, manual]
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
-...
-
-# händisch:
-# docker build . -t registry.mgrote.net/allzweckcontainer:latest
-# docker push registry.mgrote.net/allzweckcontainer:latest
diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml
deleted file mode 100644
index 0e29901..0000000
--- a/.woodpecker/lint.yml
+++ /dev/null
@@ -1,41 +0,0 @@
----
-steps:
- gitleaks:
- image: zricethezav/gitleaks:v8.18.4
- commands:
- - gitleaks detect --no-git --verbose --source $CI_WORKSPACE
- when:
- - event: [push, pull_request, cron]
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
-
- hadolint:
- image: pipelinecomponents/hadolint:0.26.4
- commands:
- - hadolint Dockerfile
- when:
- - event: [push, pull_request, cron]
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
-
- pylint:
- image: "registry.mgrote.net/pylint:master"
- commands:
- - pip3 install --no-cache-dir --break-system-packages -r requirements.txt
- - pylint app.py
- when:
- - event: [push, pull_request, cron]
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
-
- shellcheck:
- image: koalaman/shellcheck-alpine:v0.10.0
- commands:
- - |
- find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do
- if echo "$line" | grep -q "shell script"; then
- file_path=$(echo "$line" | awk -F':' '{print $1}')
- shellcheck "$file_path"
- fi
- done
- when:
- - event: [push, pull_request, cron]
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
-...