Compare commits

...

2 commits

Author SHA1 Message Date
bf371e76c5 added basic woodpecker config 2023-09-13 17:26:12 +02:00
ee0358dcf5 feat: added editorconfig 2023-09-13 17:24:52 +02:00
4 changed files with 58 additions and 0 deletions

22
.editorconfig Normal file
View file

@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{yaml,yml}]
indent_size = 2
[Makefile]
indent_style = tab

View file

@ -16,4 +16,12 @@ repos:
rev: v2.1.0 rev: v2.1.0
hooks: hooks:
- id: reuse - id: reuse
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '2.7.2'
hooks:
- id: editorconfig-checker
- repo: https://git.schmidl.dev/schtobia/woodpecker-lint
rev: 1.0.0
hooks:
- id: woodpecker-lint
... ...

24
.woodpecker.yml Normal file
View file

@ -0,0 +1,24 @@
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
steps:
docker-build:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.schmidl.dev/${CI-REPO_OWNER}/buildimage
registry: git.schmidl.dev
dry_run: true
output: type=oci,dest=${CI_REPO_OWNER}-buildimage.tar
publish-next-agent:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: git.schmidl.dev/${CI-REPO_OWNER}/buildimage
dockerfile: dockerfile
platforms: linux/amd64,linux/arm64/v8
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
event: push
...

View file

@ -14,6 +14,8 @@ org.opencontainers.image.title=buildimage \
org.opencontainers.image.source="https://git.schmidl.dev/schtobia/buildimage" \ org.opencontainers.image.source="https://git.schmidl.dev/schtobia/buildimage" \
org.opencontainers.image.url="https://git.schmidl.dev/schtobia/buildimage" org.opencontainers.image.url="https://git.schmidl.dev/schtobia/buildimage"
# editorconfig-checker-disable
RUN apt update \ RUN apt update \
&& apt install --assume-yes --no-install-recommends \ && apt install --assume-yes --no-install-recommends \
build-essential \ build-essential \
@ -21,6 +23,8 @@ RUN apt update \
git \ git \
&& find /var/lib/apt -type f -delete && find /var/lib/apt -type f -delete
# editorconfig-checker-enable
RUN useradd -rm builder RUN useradd -rm builder
USER builder USER builder