Compare commits

...

11 Commits
v0.1.0 ... main

Author SHA1 Message Date
65804bb394 prepare next release v0.3.0 (#18)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
ci/woodpecker/tag/ci Pipeline was successful
ci/woodpecker/tag/test-image Pipeline was successful
### 📖 Summary

- update changelog

### 📑 Test Plan

 CI pipeline tests (Default)

### 💬 Details

_No response_

### 📚 Additional Notes

_No response_

Reviewed-on: #18
2024-09-09 12:19:42 +02:00
aa45a6fc2f chore(deps): update curlimages/curl docker tag to v8.9.1 (#16)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [curlimages/curl](https://github.com/curl/curl-container) | final | minor | `8.8.0` -> `8.9.1` |

---

### Release Notes

<details>
<summary>curl/curl-container (curlimages/curl)</summary>

### [`v8.9.1`](https://github.com/curl/curl-container/blob/HEAD/CHANGELOG.md#891---2024-07-30)

[Compare Source](https://github.com/curl/curl-container/compare/8.9.0...8.9.1)

##### Changed

-   bump to curl 8.9.1

### [`v8.9.0`](https://github.com/curl/curl-container/blob/HEAD/CHANGELOG.md#890---2024-07-24)

[Compare Source](https://github.com/curl/curl-container/compare/8.8.0...8.9.0)

##### Changed

-   bump to curl 8.9.0
-   bump to alpine 3.20.2

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: OCram85 <marco.blessing@googlemail.com>
Reviewed-on: #16
Co-authored-by: renovate-bot <renovate@ocram85.com>
Co-committed-by: renovate-bot <renovate@ocram85.com>
2024-09-09 11:05:27 +02:00
d38e42de7f chore(deps): update davidanson/markdownlint-cli2 docker tag to v0.14.0 (#17)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [davidanson/markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2) | minor | `v0.13.0` -> `v0.14.0` |

---

### Release Notes

<details>
<summary>DavidAnson/markdownlint-cli2 (davidanson/markdownlint-cli2)</summary>

### [`v0.14.0`](https://github.com/DavidAnson/markdownlint-cli2/compare/v0.13.0...v0.14.0)

[Compare Source](https://github.com/DavidAnson/markdownlint-cli2/compare/v0.13.0...v0.14.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:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: OCram85 <marco.blessing@googlemail.com>
Reviewed-on: #17
Co-authored-by: renovate-bot <renovate@ocram85.com>
Co-committed-by: renovate-bot <renovate@ocram85.com>
2024-09-09 11:02:29 +02:00
4cd8ec250a chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v4.2.0 (#15)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [woodpeckerci/plugin-docker-buildx](https://codeberg.org/woodpecker-plugins/docker-buildx) ([source](https://codeberg.org/woodpecker-plugins/docker-buildx.git)) | minor | `4.0.0` -> `4.2.0` |

---

### Release Notes

<details>
<summary>woodpecker-plugins/docker-buildx (woodpeckerci/plugin-docker-buildx)</summary>

### [`v4.2.0`](https://codeberg.org/woodpecker-plugins/docker-buildx/releases/tag/v4.2.0)

[Compare Source](https://codeberg.org/woodpecker-plugins/docker-buildx/compare/v4.1.0...v4.2.0)

##### Features

-   Add dedicated setting to automatically handle proxy configuration ([#&#8203;171](https://github.com/woodpecker-plugins/docker-buildx/issues/171))

##### Dependencies

-   chore(deps): update docker/buildx-bin docker tag to v0.16.0
-   fix(deps): update module github.com/aws/aws-sdk-go to v1.54.19

### [`v4.1.0`](https://codeberg.org/woodpecker-plugins/docker-buildx/releases/tag/v4.1.0)

[Compare Source](https://codeberg.org/woodpecker-plugins/docker-buildx/compare/v4.0.0...v4.1.0)

##### Features

-   Pass Daemon.Mirror to Docker daemon ([#&#8203;165](https://github.com/woodpecker-plugins/docker-buildx/issues/165))

##### Bug Fixes

-   Respect repository mirrors without login credentials ([#&#8203;164](https://github.com/woodpecker-plugins/docker-buildx/issues/164))

##### Dependencies

-   chore(deps): update docker/buildx-bin docker tag to v0.15.1
-   chore(deps): update docker docker tag to v26.1.4

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjguMyIsInVwZGF0ZWRJblZlciI6IjM3LjQzNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Reviewed-on: #15
Co-authored-by: renovate-bot <renovate@ocram85.com>
Co-committed-by: renovate-bot <renovate@ocram85.com>
2024-09-09 10:59:36 +02:00
60e6a7b23d prepare release v0.2.0 (#14)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
ci/woodpecker/tag/ci Pipeline was successful
ci/woodpecker/tag/test-image Pipeline was successful
### 📖 Summary

- update changelog

### 📑 Test Plan

 CI pipeline tests (Default)

### 💬 Details

_No response_

### 📚 Additional Notes

_No response_

Reviewed-on: #14
2024-07-09 15:37:41 +02:00
6bc33fdc2d chore(deps): update curlimages/curl docker tag to v8.8.0 (#12)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [curlimages/curl](https://github.com/curl/curl-container) | final | minor | `8.7.1` -> `8.8.0` |

---

### Release Notes

<details>
<summary>curl/curl-container (curlimages/curl)</summary>

### [`v8.8.0`](https://github.com/curl/curl-container/blob/HEAD/CHANGELOG.md#880---2024-05-22)

[Compare Source](https://github.com/curl/curl-container/compare/8.7.1...8.8.0)

##### Changed

-   bump to curl 8.8.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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuNSIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: OCram85 <marco.blessing@googlemail.com>
Reviewed-on: #12
Reviewed-by: OCram85 <marco.blessing@googlemail.com>
Co-authored-by: renovate-bot <renovate@ocram85.com>
Co-committed-by: renovate-bot <renovate@ocram85.com>
2024-07-09 15:31:59 +02:00
a1a47e91ba chore(deps): update docker.io/mstruebing/editorconfig-checker docker tag to v3.0.3 (#13)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker.io/mstruebing/editorconfig-checker](https://github.com/editorconfig-checker/editorconfig-checker) | patch | `v3.0.1` -> `v3.0.3` |

---

### Release Notes

<details>
<summary>editorconfig-checker/editorconfig-checker (docker.io/mstruebing/editorconfig-checker)</summary>

### [`v3.0.3`](https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/v3.0.3)

[Compare Source](https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.0.1...v3.0.3)

#### What's Changed

-   Revert "fix: check if multiple newlines are at EOF ([#&#8203;350](https://github.com/editorconfig-checker/editorconfig-checker/issues/350))" by [@&#8203;mstruebing](https://github.com/mstruebing) in https://github.com/editorconfig-checker/editorconfig-checker/pull/354
-   ci: publish docker image by [@&#8203;mstruebing](https://github.com/mstruebing) in https://github.com/editorconfig-checker/editorconfig-checker/pull/355

**Full Changelog**: https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.0.2...v3.0.3

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjQuMyIsInVwZGF0ZWRJblZlciI6IjM3LjQyNC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Reviewed-on: #13
Reviewed-by: OCram85 <marco.blessing@googlemail.com>
Co-authored-by: renovate-bot <renovate@ocram85.com>
Co-committed-by: renovate-bot <renovate@ocram85.com>
2024-07-09 15:30:01 +02:00
f0a4978fd6 prepare release v0.1.1 (#11)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
ci/woodpecker/tag/ci Pipeline was successful
ci/woodpecker/tag/test-image Pipeline was successful
### 📖 Summary

- update changelog

### 📑 Test Plan

 CI pipeline tests (Default)

### 💬 Details

_No response_

### 📚 Additional Notes

_No response_

Reviewed-on: #11
2024-05-17 10:07:34 +02:00
8ce38ad8d7 extend text output (#10)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
### 📖 Summary

- add tests

### 📑 Test Plan

 CI pipeline tests (Default)

### 💬 Details

_No response_

### 📚 Additional Notes

_No response_

Reviewed-on: #10
2024-05-17 09:57:41 +02:00
0426f300c6 chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v4 (#8)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [woodpeckerci/plugin-docker-buildx](https://codeberg.org/woodpecker-plugins/docker-buildx) ([source](https://codeberg.org/woodpecker-plugins/docker-buildx.git)) | major | `3.2.1` -> `4.0.0` |

---

### Release Notes

<details>
<summary>woodpecker-plugins/docker-buildx (woodpeckerci/plugin-docker-buildx)</summary>

### [`v4.0.0`](https://codeberg.org/woodpecker-plugins/docker-buildx/releases/tag/v4.0.0)

[Compare Source](https://codeberg.org/woodpecker-plugins/docker-buildx/compare/v3.2.1...v4.0.0)

-   chore(deps): update docker docker tag to v26.1.0
-   chore(deps): update docker/buildx-bin docker tag to v0.14.0 ([#&#8203;155](https://github.com/woodpecker-plugins/docker-buildx/issues/155))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM2NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Reviewed-on: #8
Co-authored-by: renovate-bot <renovate@ocram85.com>
Co-committed-by: renovate-bot <renovate@ocram85.com>
2024-05-16 12:15:48 +02:00
b699580cc7 add linter + renovate (#6)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/test-image Pipeline was successful
### 📖 Summary

- add renovate json
- add linters:
  - Dockerfile
  - markdown
  - editorconfig

### 📑 Test Plan

 CI pipeline tests (Default)

### 💬 Details

_No response_

### 📚 Additional Notes

_No response_

Reviewed-on: #6
2024-05-16 12:12:31 +02:00
14 changed files with 169 additions and 76 deletions

3
.hadolint.yml Normal file
View File

@ -0,0 +1,3 @@
ignored:
- DL3018 # pin versions in Dockerfile
- DL3013 # pin pip versions in Dockerfile

8
.markdownlint.json Normal file
View File

@ -0,0 +1,8 @@
{
"default": true,
"MD013": {
"line_length": 116,
"code_block_line_length": 116,
"tables": false
}
}

View File

@ -1 +1,3 @@
gitea
Gitea
tbd

View File

@ -5,6 +5,7 @@
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-german",
"bierner.emojisense",
"ryanluker.vscode-coverage-gutters"
"ryanluker.vscode-coverage-gutters",
"davidanson.vscode-markdownlint"
]
}

19
.vscode/settings.json vendored
View File

@ -9,20 +9,6 @@
"editor.rulers": [
116
],
// powershell general
"powershell.startAutomatically": true,
"powershell.enableProfileLoading": true,
"powershell.scriptAnalysis.enable": true,
// powershell code Formatting
"powershell.codeFormatting.openBraceOnSameLine": true,
"powershell.codeFormatting.newLineAfterOpenBrace": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.alignPropertyValuePairs": true,
// cSpell settings for custom dictionary
"cSpell.enabled": true,
"cSpell.caseSensitive": false,
@ -67,5 +53,10 @@
"addWords": true
},
"custom": true
},
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
}
}

3
.vscode/tasks.json vendored
View File

@ -6,7 +6,8 @@
"type": "shell",
"command": [
"mv 'CHANGELOG.md' 'CHANGELOG.back' &&",
"changelog -m '${input:Milestone}' --token '${input:GiteaToken}' -c .changelog.yml generate > CHANGELOG.md &&",
"echo '<!-- markdownlint-disable MD041 -->' > CHANGELOG.md &&",
"changelog -m '${input:Milestone}' --token '${input:GiteaToken}' -c .changelog.yml generate >> CHANGELOG.md &&",
"echo '' >> CHANGELOG.md &&",
"cat CHANGELOG.back >> CHANGELOG.md &&",
"rm CHANGELOG.back"

View File

@ -5,7 +5,7 @@ when:
- ${CI_REPO_DEFAULT_BRANCH}
variables:
- &build_plugin 'woodpeckerci/plugin-docker-buildx:3.2.1'
- &build_plugin 'woodpeckerci/plugin-docker-buildx:4.2.0'
# deployment targets
# TODO: Disabled docker hub target until first release is ready / Rate Limits
- &publish_repos 'ocram85/plugin-gitea-package,gitea.ocram85.com/plugins/gitea-package'
@ -26,6 +26,28 @@ variables:
from_secret: gitea_passwd
steps:
lint-dockerfile:
image: hadolint/hadolint:v2.12.1-beta-alpine
commands:
#- cat Dockerfile
#- hadolint --verbose --ignore DL3003 --ignore DL3018 Dockerfile
- hadolint --ignore DL3003 --ignore DL3018 Dockerfile
#when:
# path: "Dockerfile"
lint-markdown:
image: davidanson/markdownlint-cli2:v0.14.0
commands:
- "markdownlint-cli2 *.{md,markdown}"
when:
path: "*.{md,markdown}"
lint-editorconfig:
depends_on: []
image: docker.io/mstruebing/editorconfig-checker:v3.0.3
when:
event: pull_request
test:
image: *build_plugin
settings:

View File

@ -4,44 +4,67 @@ when:
branch:
- ${CI_REPO_DEFAULT_BRANCH}
variables:
- &build_plugin 'gitea.ocram85.com/plugins/gitea-package:next'
- &default_settings
user:
from_secret: gitea_user
password:
from_secret: gitea_passwd
owner: "plugins"
package_name: "dummy_package"
package_version: "0.1.0"
file_source: "./README.md"
file_name: "readme.md"
#update: "true"
depends_on:
- "ci"
steps:
next:
image: gitea.ocram85.com/plugins/gitea-package:next
default:
image: *build_plugin
pull: true
secrets: [ gitea_user, gitea_passwd]
settings:
user:
from_secret: gitea_user
password:
from_secret: gitea_passwd
<<: *default_settings
update: "true"
when:
event: pull_request
branch: ${CI_REPO_DEFAULT_BRANCH}
debug-out:
image: *build_plugin
pull: true
secrets: [ gitea_user, gitea_passwd]
settings:
<<: *default_settings
update: "true"
debug: "true"
owner: "plugins"
package_name: "dummy_package"
package_version: "0.1.0"
file_source: "./README.md"
file_name: "readme.md"
update: "true"
when:
event: pull_request
branch: ${CI_REPO_DEFAULT_BRANCH}
next-nodebug:
image: gitea.ocram85.com/plugins/gitea-package:next
no-update:
image: *build_plugin
pull: true
failure: ignore
secrets: [ gitea_user, gitea_passwd]
settings:
user:
from_secret: gitea_user
password:
from_secret: gitea_passwd
owner: "plugins"
package_name: "dummy_package"
package_version: "0.1.0"
file_source: "./README.md"
file_name: "readme.md"
update: "true"
<<: *default_settings
debug: "true"
when:
event: pull_request
branch: ${CI_REPO_DEFAULT_BRANCH}
no-update-debug:
image: *build_plugin
pull: true
failure: ignore
secrets: [ gitea_user, gitea_passwd]
settings:
<<: *default_settings
when:
event: pull_request
branch: ${CI_REPO_DEFAULT_BRANCH}

View File

@ -1,3 +1,29 @@
<!-- markdownlint-disable MD041 -->
## [v0.3.0](https://gitea.ocram85.com/plugins/gitea-package/releases/tag/v0.3.0) - 2024-09-09
* 🤖 DEPENDENCIES
* Chore(deps): update davidanson/markdownlint-cli2 docker tag to v0.14.0 (#17)
* Chore(deps): update curlimages/curl docker tag to v8.9.1 (#16)
* Chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v4.2.0 (#15)
<!-- markdownlint-disable MD041 -->
## [v0.2.0](https://gitea.ocram85.com/plugins/gitea-package/releases/tag/v0.2.0) - 2024-07-09
* 🤖 DEPENDENCIES
* Chore(deps): update docker.io/mstruebing/editorconfig-checker docker tag to v3.0.3 (#13)
* Chore(deps): update curlimages/curl docker tag to v8.8.0 (#12)
<!-- markdownlint-disable MD041 -->
## [v0.1.1](https://gitea.ocram85.com/plugins/gitea-package/releases/tag/v0.1.1) - 2024-05-17
* 🛠️ ENHANCEMENTS
* Extend text output (#10)
* 📦 BUILD
* Add linter + renovate (#6)
* 🤖 DEPENDENCIES
* Chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v4 (#8)
<!-- markdownlint-disable MD041 -->
## [v0.1.0](https://gitea.ocram85.com/plugins/gitea-package/releases/tag/v0.1.0) - 2024-05-14
* 🐛 BUGFIXES
@ -7,4 +33,3 @@
* Migrate content (#1)
* ⚙️ META
* Update Gitea meta files (#2)

View File

@ -1,4 +1,4 @@
FROM curlimages/curl:8.7.1
FROM curlimages/curl:8.9.1
LABEL org.opencontainers.image.authors="marco@ocram85.com"
#ENV PLUGIN_OWNER
#ENV PLUGIN_PACKAGE_NAME

View File

@ -1,6 +1,8 @@
<!-- markdownlint-disable MD033 MD041 -->
<p align="right">
<img src="http://forthebadge.com/images/badges/built-with-love.svg">
<img src="http://forthebadge.com/images/badges/for-you.svg">
<img src="http://forthebadge.com/images/badges/built-with-love.svg" alt="built-with-love">
<img src="http://forthebadge.com/images/badges/for-you.svg" alt="for-you">
</p>
<p align="center">

View File

@ -26,13 +26,16 @@ sayW() {
fi
}
showHelp() {
cat << HELP
🤖 gitea-package Woodpecker-CI Plugin
Syntax:
HELP
}
# TODO: Disabled for now. No default help output needed if just running as
# Woodpecker CI plugin.
#
#showHelp() {
# cat << HELP
# 🤖 gitea-package Woodpecker-CI Plugin
#
# Syntax:
#HELP
#}
showENV() {
env | sort
@ -75,41 +78,41 @@ deleteArtifact() {
}
uploadArtifact() {
say "Testing if the artifact already exists in give package version..." "uploadArtifact"
say "Testing if the given artifact already exists in the package registry..." "uploadArtifact"
fexist=$(testArtifact)
if [ "$fexist" = "true" ]; then
if [ -n "$PLUGIN_UPDATE" ]; then
sayW "Given file already exists. Updating package file..." "uploadArtifact"
sayW "🚧 Given file already exists. Removing remote file..." "uploadArtifact"
deleteArtifact
else
sayW "A file with the same name exist already in the package." "uploadArtifact"
sayW "🛑 File already exists in the package registry." "uploadArtifact"
exit 1
fi
fi
say "Starting file upload..." "uploadArtifact"
say "Starting file upload... ($PLUGIN_FILE_SOURCE)" "uploadArtifact"
cout=$(curl --silent --output /dev/null --write-out "%{http_code}" \
--user "$PLUGIN_USER:$PLUGIN_PASSWORD" \
--upload-file "$PLUGIN_FILE_SOURCE" \
"$CI_FORGE_URL/api/packages/$PLUGIN_OWNER/generic/$PLUGIN_PACKAGE_NAME/$PLUGIN_PACKAGE_VERSION/$PLUGIN_FILE_NAME")
say "Curl output is: $cout" "uploadArtifact"
say "Curl http response code: $cout" "uploadArtifact"
if [ "$cout" = "201" ]; then
say "Upload sucessfully finished." "uploadArtifact"
say "Upload sucessfully finished." "uploadArtifact"
exit 0
elif [ "$cout" = "400" ]; then
sayE "Upload failed! (Bad Request)" "uploadArtifact"
sayE "Upload failed! (Bad Request) 💣" "uploadArtifact"
exit 1
elif [ "$cout" = "409" ]; then
sayE "File already exists in package version!" "uploadArtifact"
sayE "File already exists in package version! 🛑" "uploadArtifact"
else
sayE "Unknown upload response! ($cout)" "uploadArtifact"
sayE "Unknown upload response! ($cout) 💣" "uploadArtifact"
exit 1
fi
}
main() {
if [ -n "$PLUGIN_DEBUG" ]; then
sayW "Debug mode enabled."
sayW "🐞 Debug mode enabled."
showSettings
#sayW "Available ENV vars:"
#showENV

12
renovate.json Normal file
View File

@ -0,0 +1,12 @@
{
"dependencyDashboard": true,
"docker": {
"enabled": true
},
"woodpecker": {
"enabled": true,
"fileMatch": [
"^.woodpecker\/.*.yml$"
]
}
}