Commit graph

107 commits

Author SHA1 Message Date
90556504cc ci: shellcheck, set tag instead of latest 2024-02-02 22:09:01 +01:00
7e1855896d ci: replace docker-plugin, set SemVer, remove tag 2024-02-02 22:01:32 +01:00
f16f7884f0 chore(deps): update zricethezav/gitleaks docker tag to v8.18.2 (#14)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [zricethezav/gitleaks](https://github.com/gitleaks/gitleaks) | patch | `v8.18.1` -> `v8.18.2` |

---

### Release Notes

<details>
<summary>gitleaks/gitleaks (zricethezav/gitleaks)</summary>

### [`v8.18.2`](https://github.com/gitleaks/gitleaks/releases/tag/v8.18.2)

[Compare Source](https://github.com/gitleaks/gitleaks/compare/v8.18.1...v8.18.2)

#### Changelog

-   [`ac4b514`](https://github.com/gitleaks/gitleaks/commit/ac4b514) removed gitleaks user from Dockerfile ([#&#8203;1313](https://github.com/gitleaks/gitleaks/issues/1313))
-   [`76c9e31`](https://github.com/gitleaks/gitleaks/commit/76c9e31) Remove IAM identifiers for non-credential resources in the aws-access-token rule ([#&#8203;1307](https://github.com/gitleaks/gitleaks/issues/1307))
-   [`afe046b`](https://github.com/gitleaks/gitleaks/commit/afe046b) Update stripe rule to not alert on publishable keys ([#&#8203;1320](https://github.com/gitleaks/gitleaks/issues/1320))
-   [`8b8920d`](https://github.com/gitleaks/gitleaks/commit/8b8920d) --max-target-megabytes flag now supported for --no-git flag as well ([#&#8203;1330](https://github.com/gitleaks/gitleaks/issues/1330))
-   [`a59289c`](https://github.com/gitleaks/gitleaks/commit/a59289c) add pre-commit hook gitleaks-system ([#&#8203;1225](https://github.com/gitleaks/gitleaks/issues/1225))
-   [`870194b`](https://github.com/gitleaks/gitleaks/commit/870194b) fix errors when using protect and an external git diff tool ([#&#8203;1318](https://github.com/gitleaks/gitleaks/issues/1318))
-   [`179c607`](https://github.com/gitleaks/gitleaks/commit/179c607) rename filesystem to directory ([#&#8203;1317](https://github.com/gitleaks/gitleaks/issues/1317))
-   [`8de8938`](https://github.com/gitleaks/gitleaks/commit/8de8938) Enhance Secret Descriptions  ([#&#8203;1300](https://github.com/gitleaks/gitleaks/issues/1300))
-   [`ca7aa14`](https://github.com/gitleaks/gitleaks/commit/ca7aa14) Small refactor `detect` and `sources` ([#&#8203;1297](https://github.com/gitleaks/gitleaks/issues/1297))
-   [`01e60c8`](https://github.com/gitleaks/gitleaks/commit/01e60c8) chore(config): refactor to go generate; simplify configRules init ([#&#8203;1295](https://github.com/gitleaks/gitleaks/issues/1295))
-   [`54f5f04`](https://github.com/gitleaks/gitleaks/commit/54f5f04) forgot symlinks
-   [`221d5c4`](https://github.com/gitleaks/gitleaks/commit/221d5c4) pretty apparent 'protect' and 'detect' should be merged into one command ([#&#8203;1294](https://github.com/gitleaks/gitleaks/issues/1294))
-   [`128b50f`](https://github.com/gitleaks/gitleaks/commit/128b50f) style: sort the stopwords ([#&#8203;1289](https://github.com/gitleaks/gitleaks/issues/1289))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNjUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE2NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->

Reviewed-on: #14
Co-authored-by: Renovate Bot <renovate@mgrote.net>
Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-02-01 21:51:00 +01:00
27878aa70b ci: add shellcheck 2024-01-29 12:24:56 +01:00
6c7201b755 chore(deps): update alpine:3 docker digest to c5b1261 (#12)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| alpine | final | digest | `51b6726` -> `c5b1261` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTIuMSIsInVwZGF0ZWRJblZlciI6IjM3LjE1Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->

Reviewed-on: #12
Co-authored-by: Renovate Bot <renovate@mgrote.net>
Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-01-27 08:48:01 +01:00
fb4e0899cf remove unused files 2024-01-26 23:57:56 +01:00
415b91093f chore(deps): update pipelinecomponents/hadolint docker tag to v0.26.0 (#5)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [pipelinecomponents/hadolint](https://gitlab.com/pipeline-components/hadolint) | minor | `0.25.9` -> `0.26.0` |

---

### Release Notes

<details>
<summary>pipeline-components/hadolint (pipelinecomponents/hadolint)</summary>

### [`v0.26.0`](https://gitlab.com/pipeline-components/hadolint/compare/v0.25.9...v0.26.0)

[Compare Source](https://gitlab.com/pipeline-components/hadolint/compare/v0.25.9...v0.26.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTIuMSIsInVwZGF0ZWRJblZlciI6IjM3LjE1Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->

Reviewed-on: #5
Co-authored-by: Renovate Bot <renovate@mgrote.net>
Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-01-26 23:54:20 +01:00
626bd01c98 chore(deps): update zricethezav/gitleaks docker tag to v8.18.1 (#3)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [zricethezav/gitleaks](https://github.com/gitleaks/gitleaks) | patch | `v8.18.0` -> `v8.18.1` |

---

### Release Notes

<details>
<summary>gitleaks/gitleaks (zricethezav/gitleaks)</summary>

### [`v8.18.1`](https://github.com/gitleaks/gitleaks/releases/tag/v8.18.1)

[Compare Source](https://github.com/gitleaks/gitleaks/compare/v8.18.0...v8.18.1)

#### Changelog

-   [`dab7d02`](https://github.com/gitleaks/gitleaks/commit/dab7d02) dont crash on 100gb files pls ([#&#8203;1292](https://github.com/gitleaks/gitleaks/issues/1292))
-   [`e63b657`](https://github.com/gitleaks/gitleaks/commit/e63b657) remove secretgroup from default config ([#&#8203;1288](https://github.com/gitleaks/gitleaks/issues/1288))
-   [`20fcf50`](https://github.com/gitleaks/gitleaks/commit/20fcf50) feat: Hashicorp Terraform fields for password ([#&#8203;1237](https://github.com/gitleaks/gitleaks/issues/1237))
-   [`b496677`](https://github.com/gitleaks/gitleaks/commit/b496677) perf: avoid allocations with `(*regexp.Regexp).MatchString` ([#&#8203;1283](https://github.com/gitleaks/gitleaks/issues/1283))
-   [`a3ab4e8`](https://github.com/gitleaks/gitleaks/commit/a3ab4e8) refactor: more explicit rules ([#&#8203;1280](https://github.com/gitleaks/gitleaks/issues/1280))
-   [`bd9a25a`](https://github.com/gitleaks/gitleaks/commit/bd9a25a) bugfix: reduce false positives for stripe tokens by using word boundaries in regex ([#&#8203;1278](https://github.com/gitleaks/gitleaks/issues/1278))
-   [`6d0d8b5`](https://github.com/gitleaks/gitleaks/commit/6d0d8b5) add Infracost API rule ([#&#8203;1273](https://github.com/gitleaks/gitleaks/issues/1273))
-   [`2959fc0`](https://github.com/gitleaks/gitleaks/commit/2959fc0) refactor: simplify test asserts ([#&#8203;1271](https://github.com/gitleaks/gitleaks/issues/1271))
-   [`d37b38f`](https://github.com/gitleaks/gitleaks/commit/d37b38f) Update Makefile
-   [`14b1ca9`](https://github.com/gitleaks/gitleaks/commit/14b1ca9) refactor: change detect tests to t.Fatal instead of log.Fatal ([#&#8203;1270](https://github.com/gitleaks/gitleaks/issues/1270))
-   [`d9f86d6`](https://github.com/gitleaks/gitleaks/commit/d9f86d6) feat(rules): Add detection for Scalingo API Token ([#&#8203;1262](https://github.com/gitleaks/gitleaks/issues/1262))
-   [`ed34259`](https://github.com/gitleaks/gitleaks/commit/ed34259) feat(jwt): detect base64-encoded tokens ([#&#8203;1256](https://github.com/gitleaks/gitleaks/issues/1256))
-   [`0d5e46f`](https://github.com/gitleaks/gitleaks/commit/0d5e46f) feat: add --ignore-gitleaks-allow cmd flag ([#&#8203;1260](https://github.com/gitleaks/gitleaks/issues/1260))
-   [`a82ac29`](https://github.com/gitleaks/gitleaks/commit/a82ac29) switch out libs ([#&#8203;1259](https://github.com/gitleaks/gitleaks/issues/1259))
-   [`0b84afa`](https://github.com/gitleaks/gitleaks/commit/0b84afa) fix: no-color option should also affect zerolog output ([#&#8203;1242](https://github.com/gitleaks/gitleaks/issues/1242))
-   [`8976539`](https://github.com/gitleaks/gitleaks/commit/8976539) Fixed lineEnd indexing if the match is the whole line ([#&#8203;1223](https://github.com/gitleaks/gitleaks/issues/1223))
-   [`30c6117`](https://github.com/gitleaks/gitleaks/commit/30c6117) feat: Add optional redaction value, default 100 ([#&#8203;1229](https://github.com/gitleaks/gitleaks/issues/1229))
-   [`e9135cf`](https://github.com/gitleaks/gitleaks/commit/e9135cf) fix(jwt): longer segment lengths ([#&#8203;1214](https://github.com/gitleaks/gitleaks/issues/1214))
-   [`f65f915`](https://github.com/gitleaks/gitleaks/commit/f65f915) Added yarn.lock file to default allowlist paths ([#&#8203;1258](https://github.com/gitleaks/gitleaks/issues/1258))
-   [`abfd0f3`](https://github.com/gitleaks/gitleaks/commit/abfd0f3) Update README.md
-   [`18283bb`](https://github.com/gitleaks/gitleaks/commit/18283bb) feat(rules): make case insensitivity optional ([#&#8203;1215](https://github.com/gitleaks/gitleaks/issues/1215))
-   [`9fb36b2`](https://github.com/gitleaks/gitleaks/commit/9fb36b2) feat(rules): detect Hugging Face access tokens ([#&#8203;1204](https://github.com/gitleaks/gitleaks/issues/1204))
-   [`db4bc0f`](https://github.com/gitleaks/gitleaks/commit/db4bc0f) Resolve [#&#8203;1170](https://github.com/gitleaks/gitleaks/issues/1170) - Enable selection of a single rule  ([#&#8203;1183](https://github.com/gitleaks/gitleaks/issues/1183))
-   [`3cbcda2`](https://github.com/gitleaks/gitleaks/commit/3cbcda2) Update authress.go to include alternate form account dash (-) ([#&#8203;1224](https://github.com/gitleaks/gitleaks/issues/1224))
-   [`46c6272`](https://github.com/gitleaks/gitleaks/commit/46c6272) refactor: remove unnecessary removing temp files in tests ([#&#8203;1255](https://github.com/gitleaks/gitleaks/issues/1255))
-   [`963a697`](https://github.com/gitleaks/gitleaks/commit/963a697) refactor: use os.ReadFile instead of os.Open + io.ReadAll ([#&#8203;1254](https://github.com/gitleaks/gitleaks/issues/1254))
-   [`163ec21`](https://github.com/gitleaks/gitleaks/commit/163ec21) fix(sumologic): improve patterns ([#&#8203;1218](https://github.com/gitleaks/gitleaks/issues/1218))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTIuMSIsInVwZGF0ZWRJblZlciI6IjM3LjE1Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->

Reviewed-on: #3
Co-authored-by: Renovate Bot <renovate@mgrote.net>
Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-01-26 23:53:50 +01:00
686eb94538 chore(deps): pin dependencies (#2)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| alpine | final | pinDigest |  -> `51b6726` |
| koalaman/shellcheck-alpine |  | pinDigest |  -> `f73b035` |
| [pipelinecomponents/hadolint](https://gitlab.com/pipeline-components/hadolint) |  | pinDigest |  -> `430e949` |
| plugins/docker |  | pinDigest |  -> `2f15740` |
| [zricethezav/gitleaks](https://github.com/gitleaks/gitleaks) |  | pinDigest |  -> `e5f6d1a` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTIuMSIsInVwZGF0ZWRJblZlciI6IjM3LjE1Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->

Reviewed-on: #2
Co-authored-by: Renovate Bot <renovate@mgrote.net>
Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-01-26 23:48:24 +01:00
27b4f17c3a chore: Configure Renovate (#1)
Welcome to [Renovate](https://github.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.

---
### Detected Package Files

 * `Dockerfile` (dockerfile)
 * `.github/workflows/build.yml` (github-actions)
 * `.woodpecker/build.yml` (woodpecker)
 * `.woodpecker/lint.yml` (woodpecker)

### Configuration Summary

Based on the default config's presets, Renovate will:

  - Start dependency updates only once this onboarding PR is merged
  - Enable Renovate Dependency Dashboard creation.
  - Use semantic commit type `fix` for dependencies and `chore` for all others if semantic commits are in use.
  - Ignore `node_modules`, `bower_components`, `vendor` and various test/tests directories.
  - Group known monorepo packages together.
  - Use curated list of recommended non-monorepo package groupings.
  - Apply crowd-sourced package replacement rules.
  - Apply crowd-sourced workarounds for known problems with packages.

🔡 Do you want to change how Renovate upgrades your dependencies? Add your custom config to `renovate.json` in this branch. Renovate will update the Pull Request description the next time it runs.

---

### What to Expect

With your current configuration, Renovate will create 9 Pull Requests:

<details>
<summary>chore(deps): pin dependencies</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/pin-dependencies`
  - Merge into: `master`
  - Upgrade alpine to `sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48`
  - Upgrade koalaman/shellcheck-alpine to `sha256:f73b035c8ebfc8a66ba54e07af5cc41e790cf41fff45317914b1ce677dd9cada`
  - Upgrade [pipelinecomponents/hadolint](https://gitlab.com/pipeline-components/hadolint) to `sha256:430e949e6554d56ffc2dd08898ee609c71822d7fa1033f7c4dc240e90f2aac23`
  - Upgrade plugins/docker to `sha256:2f157400c2cb7de1b309b0f044f119375108218e54d38e1340e00b9f93abdefb`
  - Upgrade [zricethezav/gitleaks](https://github.com/gitleaks/gitleaks) to `sha256:e5f6d1a62786affd1abd882ecc73e9353ce78adea1650711f6e351767723712d`

</details>

<details>
<summary>chore(deps): update zricethezav/gitleaks docker tag to v8.18.1</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/zricethezav-gitleaks-8.x`
  - Merge into: `master`
  - Upgrade [zricethezav/gitleaks](https://github.com/gitleaks/gitleaks) to `sha256:6945c62ca019ead32bc337ab0c9fd055e98d82961765d38b7ccccc84dae95d0f`

</details>

<details>
<summary>chore(deps): update pipelinecomponents/hadolint docker tag to v0.26.0</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/pipelinecomponents-hadolint-0.x`
  - Merge into: `master`
  - Upgrade [pipelinecomponents/hadolint](https://gitlab.com/pipeline-components/hadolint) to `sha256:7122937006c7a9bcbb78ce764d3c2f0092f183b843ad128bc9fd6ea918e22d5b`

</details>

<details>
<summary>chore(deps): update actions/checkout action to v4</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/actions-checkout-4.x`
  - Merge into: `master`
  - Upgrade [actions/checkout](https://github.com/actions/checkout) to `v4`

</details>

<details>
<summary>chore(deps): update docker/build-push-action action to v5</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/docker-build-push-action-5.x`
  - Merge into: `master`
  - Upgrade [docker/build-push-action](https://github.com/docker/build-push-action) to `v5`

</details>

<details>
<summary>chore(deps): update docker/login-action action to v3</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/docker-login-action-3.x`
  - Merge into: `master`
  - Upgrade [docker/login-action](https://github.com/docker/login-action) to `v3`

</details>

<details>
<summary>chore(deps): update docker/setup-buildx-action action to v3</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/docker-setup-buildx-action-3.x`
  - Merge into: `master`
  - Upgrade [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) to `v3`

</details>

<details>
<summary>chore(deps): update docker/setup-qemu-action action to v3</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/docker-setup-qemu-action-3.x`
  - Merge into: `master`
  - Upgrade [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) to `v3`

</details>

<details>
<summary>chore(deps): update peter-evans/dockerhub-description action to v4</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/peter-evans-dockerhub-description-4.x`
  - Merge into: `master`
  - Upgrade [peter-evans/dockerhub-description](https://github.com/peter-evans/dockerhub-description) to `v4`

</details>

<br />

🚸 Branch creation will be limited to maximum 2 per hour, so it doesn't swamp any CI resources or overwhelm the project. See docs for `prhourlylimit` for details.

---

 Got questions? Check out Renovate's [Docs](https://docs.renovatebot.com/), particularly the Getting Started section.
If you need any further assistance then you can also [request help here](https://github.com/renovatebot/renovate/discussions).

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

<!--renovate-config-hash:e80b4e42a3043bc12fa0640db4bac392d2bf770acf841360d7c8ceeeac2ec1a9-->

Reviewed-on: #1
Co-authored-by: Renovate Bot <renovate@mgrote.net>
Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-01-26 23:43:34 +01:00
31945f0f9a ci: set image for hadolint 2024-01-26 23:28:00 +01:00
4f086b008d ci: set tag for gitleaks 2024-01-26 22:51:12 +01:00
d655c811c1 ci: fix woodpecker warnings 2024-01-24 20:01:21 +01:00
65d3097548 ci: shellcheck disable=SC2086 2023-11-09 09:18:19 +01:00
9dec488c64 git Revert "ci: fix linter errors: nextcloud-exec.sh"
This reverts commit d3755a20fd.
2023-11-09 09:15:52 +01:00
156aad8d30 ci: # shellcheck disable=SC1091 2023-11-09 09:07:39 +01:00
c01a58c9b3 ci: shellcheck -x 2023-11-09 09:06:21 +01:00
d3755a20fd ci: fix linter errors: nextcloud-exec.sh 2023-11-09 09:05:30 +01:00
d65d3ae4e0 ci: fix linter errors: healthcheck.sh 2023-11-09 09:04:49 +01:00
3eab1e668f ci: fix linter errors: find-container.sh 2023-11-09 09:03:35 +01:00
993d41945c ci: fix linter errors: entrypoint.sh 2023-11-09 09:03:00 +01:00
b0fc5f7cb7 ci: fix linter errors: run-cron-php.sh 2023-11-09 09:02:29 +01:00
4a8746e853 ci: fix linter errors: cron-tasks.sh 2023-11-09 09:02:19 +01:00
21278feb22 ci: enable shellcheck 2023-11-09 08:57:51 +01:00
fda096686d ci: disable shellcheck 2023-11-08 16:26:14 +01:00
02dd3b1daf FROM alpine:3 2023-11-08 16:25:44 +01:00
ca8d31d9ed add badge 2023-11-08 13:25:03 +01:00
08f853cd2d ci: add shellcheck 2023-11-03 19:31:52 +01:00
c3d9d911df drone -> woodpecker 2023-11-03 19:23:41 +01:00
72b620cc26 ci: fix linter errors 2023-10-31 18:39:10 +01:00
d175bdd6fc ci: fix linter warnings 2023-10-31 18:38:32 +01:00
b3ae127df4 ci: enable hadolint 2023-10-31 18:37:43 +01:00
df9e744c18 ci: disable hadolint 2023-10-31 18:35:29 +01:00
184bd8ca80 ci: add ci 2023-10-31 18:32:42 +01:00
John Molakvoæ
b639405e9b
fix: only return one container when searching (#22) 2023-08-07 15:26:14 -05:00
Robert Dailey
76bf57baf3 Use correct match ending for project naming mode 2022-03-19 14:18:52 -05:00
Robert Dailey
52579827be Support naming conventions for compose v2 and swarm
- Naming convention in Docker Swarm: Fixes #14
- Compose v2 uses `-` separator instead of `_`: Fixes #10
2022-03-19 14:00:38 -05:00
Robert Dailey
f2ce54653b Fix various custom script processing issues
The following issues were addressed. Note that these are edge cases.

* If an empty `/cron-scripts` directory was mounted in the container, an
  error would occur.
* If files in the `/cron-scripts` directory had spaces in the name, this
  would cause issues.
* stdin was held open when running `docker exec` which would cause hangs
  and other issues. The `exec` command is now run non-interactively.
* Custom scripts that failed would interrupt processing of scripts after
  it, if any.
2020-10-27 16:48:34 -05:00
Robert Dailey
ff71477632 Do not replace built-in scripts
When the user mounts /cron-scripts in the container, this replaced the built-in
scripts. The built-in scripts are now shipped in /cron-scripts-builtin now.
2020-10-26 13:55:10 -05:00
Robert Dailey
d13a18876a Links & build status added to README 2020-09-18 12:36:27 -05:00
Robert Dailey
9e661cb13c Use Github Actions for CI & ARM64 Support
Transition from Docker Hub automated builds to Github Actions for CI
builds. This allows support for other architectures.

ARM64 support has been added as well. This fixes #5.
2020-09-18 12:27:55 -05:00
Robert Dailey
6bd173f22e Add troubleshooting section to README
Initial troubleshooting topics are related to errors seen when there is
no bash available in the Nextcloud container. Relates to issue #6.
2020-08-28 15:39:15 -05:00
Robert Dailey
faa77b77c8 Support for custom shells
It is now possible to override and explicitly specify the shell you
would like used when executing cron tasks. This is accomplished with the
NEXTCLOUD_EXEC_SHELL environment variable, which defaults to bash. You
can also override and customize the arguments provided to that shell
executable via NEXTCLOUD_EXEC_SHELL_ARGS, which defaults to "-c".

See documentation for more detail and examples.

Fixes #6
2020-08-28 15:23:33 -05:00
Robert Dailey
08ec92f509 Add extra logs and debugging features
* New DEBUG environment variable enables `set -x` in shell scripts for
  extra verbose output for debugging custom cron scripts and to assist
  with development of the core scripts.
* Verify if we can find the Nextcloud container on start up. Fail if
  not.
* Print information about how we will search for Nextcloud on start up.
* During cron task execution, the ID of the Nextcloud container is
  printed, if found.
2020-08-28 14:52:00 -05:00
Robert Dailey
5d63bb14e4 Retain LF for shell scripts 2020-08-28 11:19:18 -05:00
clewsy
e90dcc60d2 apk add docker-cli instead of docker. 2020-01-21 12:06:50 -06:00
Robert Dailey
9eedf6f503 README: Multiple custom task script support
Explain in the README that multiple shell scripts are supported for
custom cron tasks.
2020-01-15 09:06:56 -06:00
Robert Dailey
241d96828d Clarify some aspects of the setup instruction example
An example is provided for the path to the YML file so that `NEXTCLOUD_PROJECT_NAME`
in the example makes sense.
2019-10-28 08:05:53 -05:00
Robert Dailey
6416dd8731 Cronjob works now between Nextcloud container recreation
If the Nextcloud container is recreated while the cronjob container is still running, the ID of the
container is obtained each time the cron tasks are executed. Previously it was cached on entrypoint,
so if the ID changed this container would fail.
2019-06-20 19:34:58 -05:00
Robert Dailey
0bfd68a109 Fix markdown lint issues and incorrect image name 2019-05-25 12:23:35 -05:00