From fb9026f1eea50c2a6856eadc549a5076b5e83341 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Sun, 4 Feb 2024 13:51:05 +0100 Subject: [PATCH] first commit --- .editorconfig | 12 ++++++++++++ .gitea/workflows/main.yaml | 28 ++++++++++++++++++++++++++++ .hadolint.yaml | 3 +++ .vscode/settings.json | 11 +++++++++++ Dockerfile | 3 +++ 5 files changed, 57 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitea/workflows/main.yaml create mode 100644 .hadolint.yaml create mode 100644 .vscode/settings.json create mode 100644 Dockerfile diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5d47c21 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# 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 diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml new file mode 100644 index 0000000..65d08d7 --- /dev/null +++ b/.gitea/workflows/main.yaml @@ -0,0 +1,28 @@ +name: curl-with-bash-build mr + +on: + push: + +jobs: + Dockerfile lint: + runs-on: k3s + steps: + - uses: actions/checkout@v4 + - uses: hadolint/hadolint-action@v3.1.0 + with: + dockerfile: Dockerfile + + build: + needs: Dockerfile lint + runs-on: k3s + steps: + - uses: actions/checkout@v4 + - name: Kaniko build + uses: aevea/action-kaniko@master + with: + image: rogersik/curl-with-bash + registry: gitea.sikorski.cloud + tag: "8.6.0" + cache: true + username: rogersik + password: ${{ secrets.REGISTRY_PASSWORD }} diff --git a/.hadolint.yaml b/.hadolint.yaml new file mode 100644 index 0000000..1cd782d --- /dev/null +++ b/.hadolint.yaml @@ -0,0 +1,3 @@ +ignored: + - DL3008 # no need to pin versions + - DL3018 # apk: no need to pin versions diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0427c0f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "editor.formatOnPaste": false, + "[shellscript]": { + "editor.defaultFormatter": "foxundermoon.shell-format" + }, + "[dockerfile]": { + "editor.defaultFormatter": "ms-azuretools.vscode-docker" + } +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b1abdb8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM curlimages/curl:8.6.0 + +RUN apk add --no-cache bash