From c7842b9f3b177a6cfccee5923570fab06809d993 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Sun, 26 Apr 2026 17:22:42 +0200 Subject: [PATCH] Initial commit --- .editorconfig | 16 ++++++++++++++++ .gitea/workflows/dev.yaml | 30 ++++++++++++++++++++++++++++++ .gitea/workflows/main.yaml | 32 ++++++++++++++++++++++++++++++++ .gitignore | 6 ++++++ .hadolint.yaml | 2 ++ .vscode/extensions.json | 10 ++++++++++ .vscode/settings.json | 15 +++++++++++++++ Dockerfile | 4 ++++ README.md | 2 ++ 9 files changed, 117 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitea/workflows/dev.yaml create mode 100644 .gitea/workflows/main.yaml create mode 100644 .gitignore create mode 100644 .hadolint.yaml create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..036502a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[{Makefile,**.mk}] +# Use tabs for indentation (Makefiles require tabs) +indent_style = tab diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml new file mode 100644 index 0000000..ffa7e09 --- /dev/null +++ b/.gitea/workflows/dev.yaml @@ -0,0 +1,30 @@ +name: docker-build mr + +on: + push: + branches-ignore: + - main + +jobs: + dockerfile_lint: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: hadolint/hadolint-action@v3.1.0 + with: + dockerfile: Dockerfile + + build: + # needs: dockerfile_lint + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Kaniko build + uses: aevea/action-kaniko@master + with: + image: rogersik/ubuntu-xrdp + registry: gitea.sikorski.cloud + tag: "latest-dev" + cache: true + username: rogersik + password: ${{ secrets.REGISTRY_PASSWORD }} diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml new file mode 100644 index 0000000..dd46f20 --- /dev/null +++ b/.gitea/workflows/main.yaml @@ -0,0 +1,32 @@ +--- +name: docker-build main +on: + push: + branches: + - main + +jobs: + dockerfile_lint: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: hadolint/hadolint-action@v3.1.0 + with: + dockerfile: Dockerfile + + build: + # needs: dockerfile_lint + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Kaniko build + # https://github.com/aevea/action-kaniko/releases + uses: aevea/action-kaniko@v0.12.0 + with: + image: rogersik/ubuntu-xrdp + registry: gitea.sikorski.cloud + tag: 'latest' + # tag_with_latest: true # https://github.com/aevea/action-kaniko/issues/66 + cache: true + username: rogersik + password: ${{ secrets.REGISTRY_PASSWORD }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ccebc6e --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# k8s +secret.yml +secret.yaml + +# dev +.local diff --git a/.hadolint.yaml b/.hadolint.yaml new file mode 100644 index 0000000..81540f9 --- /dev/null +++ b/.hadolint.yaml @@ -0,0 +1,2 @@ +ignored: + - DL3008 # no need to pin versions diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..5a960f2 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,10 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "EditorConfig.EditorConfig", + // Code formatter using prettier + "esbenp.prettier-vscode", + "gamunu.opentofu" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..eb6bbfc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,15 @@ +{ + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "editor.formatOnPaste": false, + "vs-kubernetes": { + "disable-linters": ["resource-limits"] + }, + "[terraform]": { + "editor.defaultFormatter": "gamunu.opentofu" + }, + "files.associations": { + ".env*": "plaintext", + ".gitignore": "plaintext" + } +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1751094 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM ubuntu:latest + +# https://github.com/hadolint/hadolint/wiki/DL4006 +SHELL ["/bin/bash", "-o", "pipefail", "-c"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..bb60a32 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# VSCode Template +