Author SHA1 Message Date
kovagoadi 4a2fb750a0 Testing with real IP 2026-04-01 12:22:38 +02:00
kovagoadi 1d30d5afad Added route file back
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Successful in 10s
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
2025-12-25 21:20:32 +01:00
kovagoadi ef466353b8 Merge pull request 'fix-pipeline-fail' (#27) from fix-pipeline-fail into main
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 49s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 1m1s
Reviewed-on: #27
2025-12-25 21:13:47 +01:00
kovagoadi 6e9c0f0442 Removed new file
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Successful in 14s
2025-12-25 21:11:27 +01:00
kovagoadi ba65f0609a chore: remove staging/dev routing configuration and associated extra host entries 2025-12-25 21:09:55 +01:00
kovagoadiandkovagoadi 38ed72b6de Testing whether folder works (#26)
Remote Deployment Pipeline / Prepare Context (push) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 51s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Failing after 23m6s
Reviewed-on: #26
Co-authored-by: kovagoadi <[email protected]>
Co-committed-by: kovagoadi <[email protected]>
2025-12-25 20:43:31 +01:00
kovagoadiandkovagoadi 8c6c01b916 Setup env (#24)
Remote Deployment Pipeline / Prepare Context (push) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 51s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 1m1s
Reviewed-on: #24
Co-authored-by: kovagoadi <[email protected]>
Co-committed-by: kovagoadi <[email protected]>
2025-12-20 15:12:51 +01:00
kovagoadi 249f3030c3 Merge pull request 'Update traefik:v3.6 Docker digest to 6762263' (#25) from renovate/traefik-v3.6 into main
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 48s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 1m16s
Reviewed-on: #25
2025-12-20 14:15:18 +01:00
renovate-bot 5678f43f4c Update traefik:v3.6 Docker digest to 6762263
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Successful in 10s
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
2025-12-20 03:23:06 +00:00
kovagoadi 9de4b3a699 Merge pull request 'Update traefik:v3.6 Docker digest to 4ec25d3' (#23) from renovate/traefik-v3.6 into main
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 48s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 56s
Reviewed-on: #23
2025-12-19 19:55:27 +01:00
renovate-bot 83984df467 Update traefik:v3.6 Docker digest to 4ec25d3
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Successful in 10s
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
2025-12-19 03:28:04 +00:00
kovagoadi 7e253b5046 Merge pull request 'Update traefik:v3.6 Docker digest to 2979bff' (#22) from renovate/traefik-v3.6 into main
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 47s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 54s
Reviewed-on: #22
2025-12-17 23:56:27 +01:00
renovate-bot dd7aeb8f39 Update traefik:v3.6 Docker digest to 2979bff
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Successful in 11s
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
2025-12-17 03:27:39 +00:00
kovagoadi f9ca764aa3 Merge pull request 'Update traefik:v3.6 Docker digest to c5bd185' (#21) from renovate/traefik-v3.6 into main
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 49s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 57s
Reviewed-on: #21
2025-12-08 11:54:38 +01:00
renovate-bot 5d465f75c3 Update traefik:v3.6 Docker digest to c5bd185
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Successful in 11s
2025-12-08 03:27:50 +00:00
kovagoadi 23d99e7a9f Merge pull request 'Update traefik:v3.6 Docker digest to d01757c' (#20) from renovate/traefik-v3.6 into main
Remote Deployment Pipeline / Prepare Context (push) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 5m3s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 1m1s
Reviewed-on: #20
2025-12-06 12:55:37 +01:00
renovate-bot 0f1770e1c0 Update traefik:v3.6 Docker digest to d01757c
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Successful in 16s
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
2025-12-06 03:27:57 +00:00
kovagoadi 7b014c9eb2 Merge pull request 'Update actions/checkout digest to 8e8c483' (#19) from renovate/actions-checkout-digest into main
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 44s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 43s
Reviewed-on: #19
2025-12-03 11:17:20 +01:00
renovate-bot 29b45882a2 Update actions/checkout digest to 8e8c483
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Successful in 10s
2025-12-03 03:23:53 +00:00
renovate-botandkovagoadi 70751a19ff Update actions/checkout action to v6 (#18)
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 43s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 46s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://github.com/actions/checkout) | action | major | `v4` -> `v6` |

---

### Release Notes

<details>
<summary>actions/checkout (actions/checkout)</summary>

### [`v6`](https://github.com/actions/checkout/compare/v5...v6)

[Compare Source](https://github.com/actions/checkout/compare/v5...v6)

### [`v5`](https://github.com/actions/checkout/compare/v4...v5)

[Compare Source](https://github.com/actions/checkout/compare/v4...v5)

</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:eyJjcmVhdGVkSW5WZXIiOiI0Mi4yNi4xMSIsInVwZGF0ZWRJblZlciI6IjQyLjI2LjExIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: kovagoadi <[email protected]>
Reviewed-on: #18
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
2025-12-01 10:09:18 +01:00
renovate-botandkovagoadi a9a3f0b186 Update easingthemes/ssh-deploy action to v5.1.1 (#17)
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 45s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 44s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [easingthemes/ssh-deploy](https://github.com/easingthemes/ssh-deploy) | action | minor | `v5.0.0` -> `v5.1.1` |

---

### Release Notes

<details>
<summary>easingthemes/ssh-deploy (easingthemes/ssh-deploy)</summary>

### [`v5.1.1`](https://github.com/easingthemes/ssh-deploy/compare/v5.1.0...v5.1.1)

[Compare Source](https://github.com/easingthemes/ssh-deploy/compare/v5.1.0...v5.1.1)

### [`v5.1.0`](https://github.com/easingthemes/ssh-deploy/releases/tag/v5.1.0)

[Compare Source](https://github.com/easingthemes/ssh-deploy/compare/v5.0.3...v5.1.0)

##### What's Changed

- Feature: Delete Script After Execution by [@&#8203;Armadillidiid](https://github.com/Armadillidiid) in [#&#8203;184](https://github.com/easingthemes/ssh-deploy/pull/184)

##### New Contributors

- [@&#8203;Armadillidiid](https://github.com/Armadillidiid) made their first contribution in [#&#8203;184](https://github.com/easingthemes/ssh-deploy/pull/184)

**Full Changelog**: <https://github.com/easingthemes/ssh-deploy/compare/v5.0.3...v5.1.0>

### [`v5.0.3`](https://github.com/easingthemes/ssh-deploy/releases/tag/v5.0.3)

[Compare Source](https://github.com/easingthemes/ssh-deploy/compare/v5.0.2...v5.0.3)

##### What's Changed

- Update actions to Node.js 20 by [@&#8203;alekw](https://github.com/alekw) in [#&#8203;180](https://github.com/easingthemes/ssh-deploy/pull/180)

##### New Contributors

- [@&#8203;alekw](https://github.com/alekw) made their first contribution in [#&#8203;180](https://github.com/easingthemes/ssh-deploy/pull/180)

**Full Changelog**: <https://github.com/easingthemes/ssh-deploy/compare/v5.0.2...v5.0.3>

### [`v5.0.2`](https://github.com/easingthemes/ssh-deploy/releases/tag/v5.0.2)

[Compare Source](https://github.com/easingthemes/ssh-deploy/compare/v5.0.1...v5.0.2)

##### What's Changed

- fix: added the missing declarations [#&#8203;177](https://github.com/easingthemes/ssh-deploy/issues/177) by [@&#8203;skyArony](https://github.com/skyArony) in [#&#8203;178](https://github.com/easingthemes/ssh-deploy/pull/178)

##### New Contributors

- [@&#8203;skyArony](https://github.com/skyArony) made their first contribution in [#&#8203;178](https://github.com/easingthemes/ssh-deploy/pull/178)

**Full Changelog**: <https://github.com/easingthemes/ssh-deploy/compare/v5.0.1...v5.0.2>

### [`v5.0.1`](https://github.com/easingthemes/ssh-deploy/compare/v5.0.0...v5.0.1)

[Compare Source](https://github.com/easingthemes/ssh-deploy/compare/v5.0.0...v5.0.1)

</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:eyJjcmVhdGVkSW5WZXIiOiI0Mi4yNi4xMSIsInVwZGF0ZWRJblZlciI6IjQyLjI2LjExIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: kovagoadi <[email protected]>
Reviewed-on: https://gitea.kovagoadi.hu/kovagoadi.hu/traefik/pulls/17
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
2025-12-01 10:06:21 +01:00
renovate-botandkovagoadi 707fed06c7 Update appleboy/ssh-action action to v1.2.4 (#16)
Remote Deployment Pipeline / Prepare Context (push) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 42s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 42s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [appleboy/ssh-action](https://github.com/appleboy/ssh-action) | action | minor | `v1.0.3` -> `v1.2.4` |

---

### Release Notes

<details>
<summary>appleboy/ssh-action (appleboy/ssh-action)</summary>

### [`v1.2.4`](https://github.com/appleboy/ssh-action/releases/tag/v1.2.4)

[Compare Source](https://github.com/appleboy/ssh-action/compare/v1.2.3...v1.2.4)

#### Changelog

##### Enhancements

- [`4e3535e`](https://github.com/appleboy/ssh-action/commit/4e3535e14ec03f79243a1a56045526c18d66d556): chore: bump default DRONE\_SSH\_VERSION to 1.8.2 ([@&#8203;appleboy](https://github.com/appleboy))

##### Build process updates

- [`823bd89`](https://github.com/appleboy/ssh-action/commit/823bd89e131d8d508129f9443cad5855e9ba96f0): ci: trigger GitHub Actions workflows only on version tags ([@&#8203;appleboy](https://github.com/appleboy))

##### Documentation updates

- [`652a0be`](https://github.com/appleboy/ssh-action/commit/652a0bee3c6aaba4fb2ae596f1de42c51f8e81ec): docs: update CI documentation and workflow references ([@&#8203;appleboy](https://github.com/appleboy))
- [`f6208e0`](https://github.com/appleboy/ssh-action/commit/f6208e096db23f5766ae2e218bde93cb6a8d0944): docs: document and demonstrate capturing and using command output ([@&#8203;appleboy](https://github.com/appleboy))

### [`v1.2.3`](https://github.com/appleboy/ssh-action/releases/tag/v1.2.3)

[Compare Source](https://github.com/appleboy/ssh-action/compare/v1.2.2...v1.2.3)

#### Changelog

##### Features

- [`20d5c5b`](https://github.com/appleboy/ssh-action/commit/20d5c5bbc91841863c09aaa3a6797061bbf148a4): feat: add configurable curl insecure flag to GitHub action ([@&#8203;appleboy](https://github.com/appleboy))

##### Bug fixes

- [`170eebb`](https://github.com/appleboy/ssh-action/commit/170eebb2ee3ce82216b41e857a289e0dca842c08): fix: enhance binary download flow with robust error handling ([#&#8203;394](https://github.com/appleboy/ssh-action/issues/394)) ([@&#8203;appleboy](https://github.com/appleboy))

##### Enhancements

- [`b27b9f8`](https://github.com/appleboy/ssh-action/commit/b27b9f8968f508f19656348e47e978c4686dbd2f): chore: refactor system to improve efficiency and update API usage ([@&#8203;appleboy](https://github.com/appleboy))
- [`0e19dd9`](https://github.com/appleboy/ssh-action/commit/0e19dd962da42eb2f2b775d6e133dc9dfd424aa6): chore: improve robustness and consistency across multiple scripts ([@&#8203;appleboy](https://github.com/appleboy))

##### Refactor

- [`b6690ee`](https://github.com/appleboy/ssh-action/commit/b6690ee817812c18c1bcc05cd08d0011e6aabc63): refactor: improve error handling and code readability across scripts ([#&#8203;374](https://github.com/appleboy/ssh-action/issues/374)) ([@&#8203;appleboy](https://github.com/appleboy))

##### Build process updates

- [`2b3c650`](https://github.com/appleboy/ssh-action/commit/2b3c6504b3e1405c32b38787b6d20b223a1ecebc): ci: unify and enhance GitHub workflow configurations ([@&#8203;appleboy](https://github.com/appleboy))
- [`ffd1eec`](https://github.com/appleboy/ssh-action/commit/ffd1eec36471c1bfbebcf1941411db862c9b0e38): ci: add workflow step for multi-command SSH testing ([#&#8203;386](https://github.com/appleboy/ssh-action/issues/386)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`53f5c5c`](https://github.com/appleboy/ssh-action/commit/53f5c5cedfd3f9032989483701c0a25764f2d4e3): ci: add automated Trivy security scanning via GitHub Actions ([@&#8203;appleboy](https://github.com/appleboy))

##### Documentation updates

- [`52a1840`](https://github.com/appleboy/ssh-action/commit/52a1840ca6cafe7e0e1e15e8649b935ba4e33077): docs: update SSH action version to v1 in all README files ([#&#8203;372](https://github.com/appleboy/ssh-action/issues/372)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`689de3c`](https://github.com/appleboy/ssh-action/commit/689de3cf649b7be1e792eeea9fc0571dcc0c3e4f): docs: improve CLI messaging and error clarity for users ([@&#8203;appleboy](https://github.com/appleboy))
- [`9ca1cd2`](https://github.com/appleboy/ssh-action/commit/9ca1cd21746f53919166547633817ce20c8b5394): docs: document the new `curl_insecure` configuration option ([@&#8203;appleboy](https://github.com/appleboy))
- [`bd83ba7`](https://github.com/appleboy/ssh-action/commit/bd83ba7e2b3b59ec4007ddc30c72ef12e5d2fff7): docs: document and configure drone-ssh version usage ([#&#8203;381](https://github.com/appleboy/ssh-action/issues/381)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`b80f638`](https://github.com/appleboy/ssh-action/commit/b80f638dc49d3b3a0321d26532f97c8eecb7276b): docs: rewrite and unify documentation across all supported languages ([@&#8203;appleboy](https://github.com/appleboy))
- [`c7fbbc9`](https://github.com/appleboy/ssh-action/commit/c7fbbc9208e4020c3b78e5db9e7042248c991866): docs: add table of contents to multilingual README files ([@&#8203;appleboy](https://github.com/appleboy))
- [`4d84f05`](https://github.com/appleboy/ssh-action/commit/4d84f0522a5d50416e14452c3285361e7fdff665): docs: revamp and unify multi-language readme documentation ([@&#8203;appleboy](https://github.com/appleboy))
- [`8f3cc07`](https://github.com/appleboy/ssh-action/commit/8f3cc07719a6ef0a247c6a0b146041bf14ea6211): docs: add comprehensive tables of contents to all README files ([@&#8203;appleboy](https://github.com/appleboy))
- [`8745f95`](https://github.com/appleboy/ssh-action/commit/8745f9583c033551b991c73d76d23dd610c9f26e): docs: restructure and clarify parameter documentation across all readmes ([@&#8203;appleboy](https://github.com/appleboy))
- [`57f6f35`](https://github.com/appleboy/ssh-action/commit/57f6f3556d4a3e900b37a8dcf9e06ec7da87d6e7): docs(readme): better wording for script\_path property ([#&#8203;387](https://github.com/appleboy/ssh-action/issues/387)) ([@&#8203;kontur](https://github.com/kontur))
- [`3ca8a7c`](https://github.com/appleboy/ssh-action/commit/3ca8a7c5359ac6ad91aa47f1946ece1c3b025004): docs: clarify script\_path usage in Chinese remote execution docs ([@&#8203;appleboy](https://github.com/appleboy))
- [`c680069`](https://github.com/appleboy/ssh-action/commit/c680069d84038812d68d6f1360d230ea50fb6005): docs: add comprehensive documentation for project setup and usage ([@&#8203;appleboy](https://github.com/appleboy))
- [`91f3272`](https://github.com/appleboy/ssh-action/commit/91f3272fc5907f4699dcf59761eb622a07342f5a): docs: add Trivy security scan badge to all documentation ([@&#8203;appleboy](https://github.com/appleboy))

### [`v1.2.2`](https://github.com/appleboy/ssh-action/releases/tag/v1.2.2)

[Compare Source](https://github.com/appleboy/ssh-action/compare/v1.2.1...v1.2.2)

#### Changelog

##### Enhancements

- [`b0a8f32`](https://github.com/appleboy/ssh-action/commit/b0a8f324e192469585a608d1f586061cf28a6571): chore: bump DRONE\_SSH version to 1.8.1 ([@&#8203;appleboy](https://github.com/appleboy))
- [`2ead5e3`](https://github.com/appleboy/ssh-action/commit/2ead5e36573f08b82fbfce1504f1a4b05a647c6f): chore: update action version across workflows and documentation ([@&#8203;appleboy](https://github.com/appleboy))

##### Documentation updates

- [`9817ef4`](https://github.com/appleboy/ssh-action/commit/9817ef4a1793d4009d854d26cfb0ba4b615d5791): docs(readme): set -e for script\_stop functionality ([#&#8203;368](https://github.com/appleboy/ssh-action/issues/368)) ([@&#8203;Setland34](https://github.com/Setland34))
- [`9273705`](https://github.com/appleboy/ssh-action/commit/92737056c0040ce12606ea20e76e4bcb9824d517): docs: improve documentation and defaults for execution and security ([@&#8203;appleboy](https://github.com/appleboy))
- [`d99ccf8`](https://github.com/appleboy/ssh-action/commit/d99ccf8c09d72749f8eed879283eceea73f4ca6e): docs: improve documentation clarity and consistency ([@&#8203;appleboy](https://github.com/appleboy))
- [`01a5359`](https://github.com/appleboy/ssh-action/commit/01a53594ebd450be519b0d93972a7efca79d50ee): docs: enhance language support and improve documentation clarity ([@&#8203;appleboy](https://github.com/appleboy))
- [`48992f2`](https://github.com/appleboy/ssh-action/commit/48992f2e2c17668bdf29d9b0159c70758d39cd02): docs: prioritize English in language selection options ([@&#8203;appleboy](https://github.com/appleboy))
- [`039c9e0`](https://github.com/appleboy/ssh-action/commit/039c9e07bb37b35054415f27cdbfd7645237832d): docs: update README with private key instructions in multiple languages ([@&#8203;appleboy](https://github.com/appleboy))
- [`a0a0326`](https://github.com/appleboy/ssh-action/commit/a0a032693916dbcde4f0dd3e881dc58c97e35180): docs: clarify parameter descriptions for improved documentation ([@&#8203;appleboy](https://github.com/appleboy))

### [`v1.2.1`](https://github.com/appleboy/ssh-action/releases/tag/v1.2.1)

[Compare Source](https://github.com/appleboy/ssh-action/compare/v1.2.0...v1.2.1)

#### Changelog

##### Features

- [`102c0d2`](https://github.com/appleboy/ssh-action/commit/102c0d2e5f9f4ec3afb6392f674a1ae9e970dea9): feat: capture stdout and store as output ([#&#8203;287](https://github.com/appleboy/ssh-action/issues/287)) ([@&#8203;GammaGames](https://github.com/GammaGames))

##### Enhancements

- [`8fdfeb0`](https://github.com/appleboy/ssh-action/commit/8fdfeb034ef6e9033a8a4407975aedbc12a08737): chore(github): update `appleboy/ssh-action` to version `v1.2.0` across workflows ([@&#8203;appleboy](https://github.com/appleboy))
- [`43d4ebb`](https://github.com/appleboy/ssh-action/commit/43d4ebbb72699ed0e9e8aeead91adfc4eac75ed6): chore: Add test to stable workflow for script\_path ([#&#8203;347](https://github.com/appleboy/ssh-action/issues/347)) ([@&#8203;kyle-leonhard](https://github.com/kyle-leonhard))
- [`8faa842`](https://github.com/appleboy/ssh-action/commit/8faa84277b88b6cd1455986f459aa66cf72bc8a3): chore: standardize formatting and update dependencies in workflows ([@&#8203;appleboy](https://github.com/appleboy))

##### Build process updates

- [`1c1ad10`](https://github.com/appleboy/ssh-action/commit/1c1ad10f6da46db2f81a68133f45b6a29317b741): ci(action): remove script stop functionality from project ([#&#8203;350](https://github.com/appleboy/ssh-action/issues/350)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`e13c387`](https://github.com/appleboy/ssh-action/commit/e13c387332e012cca188219684f51e6ac401aa32): ci(action): display an environment variable with special characters ([#&#8203;351](https://github.com/appleboy/ssh-action/issues/351)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`66aa4d3`](https://github.com/appleboy/ssh-action/commit/66aa4d343bf909ac4fa0ac52f4e62a9adc354c95): ci: add SSH testing job to GitHub Actions workflow ([#&#8203;355](https://github.com/appleboy/ssh-action/issues/355)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`86aa40d`](https://github.com/appleboy/ssh-action/commit/86aa40ddb7d085faad449ea3e1726b81949ef86b): ci: add SSH server testing to GitHub Actions workflow ([@&#8203;appleboy](https://github.com/appleboy))

##### Documentation updates

- [`a8952eb`](https://github.com/appleboy/ssh-action/commit/a8952ebe2a1428de1644645b937cea45ed655b67): docs(readme): update documentation for GitHub Actions and Docker support ([@&#8203;appleboy](https://github.com/appleboy))
- [`cec69ef`](https://github.com/appleboy/ssh-action/commit/cec69ef2315fa7868468f4283007628aa37a6b7e): docs(readme): standardize terminology and capitalization across project ([@&#8203;appleboy](https://github.com/appleboy))
- [`a9e2fdf`](https://github.com/appleboy/ssh-action/commit/a9e2fdf08d46817c815611f3989f7757048795bd): docs(readme): improve README structure and add new input variables ([@&#8203;appleboy](https://github.com/appleboy))
- [`6137f73`](https://github.com/appleboy/ssh-action/commit/6137f733fb6aad9941aaf990e4df5af3aef72d1c): docs: improve project documentation and organization ([@&#8203;appleboy](https://github.com/appleboy))
- [`b76e617`](https://github.com/appleboy/ssh-action/commit/b76e6173e8c2787083cd8d94b715e6a01844d137): docs(readme): standardize and format README files across languages ([@&#8203;appleboy](https://github.com/appleboy))
- [`4853185`](https://github.com/appleboy/ssh-action/commit/48531853a70097fbb21625def44933e73f9b3ec1): docs(readme): refactor README files to improve language link structure ([@&#8203;appleboy](https://github.com/appleboy))
- [`49751ff`](https://github.com/appleboy/ssh-action/commit/49751ff51697f88206b6c7a0f60f83d1a880b26d): docs: standardize `script_file` naming to `script_path` in documentation ([#&#8203;360](https://github.com/appleboy/ssh-action/issues/360)) ([@&#8203;appleboy](https://github.com/appleboy))

### [`v1.2.0`](https://github.com/appleboy/ssh-action/releases/tag/v1.2.0)

[Compare Source](https://github.com/appleboy/ssh-action/compare/v1.1.0...v1.2.0)

#### Changelog

##### Features

- [`703ffa3`](https://github.com/appleboy/ssh-action/commit/703ffa3c1ee959aa3694ac64b3a8a9bfa38c2c20): feat(actions): enhance system performance and API integration ([@&#8203;appleboy](https://github.com/appleboy))

##### Bug fixes

- [`3f14168`](https://github.com/appleboy/ssh-action/commit/3f1416813d34f7167832a87fe9607a99b05622a7): fix: typo in success message ([#&#8203;340](https://github.com/appleboy/ssh-action/issues/340)) ([@&#8203;1ukastesar](https://github.com/1ukastesar))
- [`25259c3`](https://github.com/appleboy/ssh-action/commit/25259c3d5059bb20c4b45bf5089d58098b0a5b93): fix: refactor and enhance API and testing infrastructure ([@&#8203;appleboy](https://github.com/appleboy))

##### Enhancements

- [`bb32884`](https://github.com/appleboy/ssh-action/commit/bb32884d53eb81279b477ae19ecf3d319978c768): chore: enhance CI/CD workflows and documentation formatting ([@&#8203;appleboy](https://github.com/appleboy))
- [`362a7f1`](https://github.com/appleboy/ssh-action/commit/362a7f1677aa40aaec6bb1d6fd119b2e080fd7f3): chore: support running commands from a file ([#&#8203;341](https://github.com/appleboy/ssh-action/issues/341)) ([@&#8203;kyle-leonhard](https://github.com/kyle-leonhard))
- [`176437b`](https://github.com/appleboy/ssh-action/commit/176437b5488c703fa41f14a89a8458192086f8f3): chore: refactor codebase for improved consistency and performance ([@&#8203;appleboy](https://github.com/appleboy))

##### Refactor

- [`bf84378`](https://github.com/appleboy/ssh-action/commit/bf84378588277d5361a4cb8b7b3b42912fc3fcab): refactor: refactor codebase and improve API performance ([@&#8203;appleboy](https://github.com/appleboy))

##### Build process updates

- [`2763143`](https://github.com/appleboy/ssh-action/commit/2763143a97c8f9c4e85766b7458183ec99341e81): ci(script): enhance CI workflows and API integration ([@&#8203;appleboy](https://github.com/appleboy))
- [`8b84eae`](https://github.com/appleboy/ssh-action/commit/8b84eaec3a216f1a0a6f56e15a7ab08f9975236a): ci(script): improve CI robustness and coverage across environments ([@&#8203;appleboy](https://github.com/appleboy))

##### Documentation updates

- [`ab698e5`](https://github.com/appleboy/ssh-action/commit/ab698e59d82afb1b65ffe8f70a0d482d744d6239): docs(readme): enhance network protocol support and testing ([@&#8203;appleboy](https://github.com/appleboy))
- [`7eaf766`](https://github.com/appleboy/ssh-action/commit/7eaf76671a0d7eec5d98ee897acda4f968735a17): docs(readme): update SSH action and enhance Chinese README files ([@&#8203;appleboy](https://github.com/appleboy))

### [`v1.1.0`](https://github.com/appleboy/ssh-action/releases/tag/v1.1.0)

[Compare Source](https://github.com/appleboy/ssh-action/compare/v1.0.3...v1.1.0)

#### Changelog

##### Bug fixes

- [`0c7561b`](https://github.com/appleboy/ssh-action/commit/0c7561b1a30e223b97730bb8b92671995d9fb1d0): fix: switch to SSH key authentication for security ([@&#8203;appleboy](https://github.com/appleboy))

##### Enhancements

- [`9b978f0`](https://github.com/appleboy/ssh-action/commit/9b978f09f2587beff9c80449f57cb0f0612d3039): chore: update SSH action version in README files ([@&#8203;appleboy](https://github.com/appleboy))
- [`1991c55`](https://github.com/appleboy/ssh-action/commit/1991c553ec29aeb9fe1cbffabfabe0c2f0ea891e): chore(file): update target file ([@&#8203;appleboy](https://github.com/appleboy))
- [`aa293c2`](https://github.com/appleboy/ssh-action/commit/aa293c24bb8b49499c238d2260b26a5ab2ee10e0): chore: optimize system configuration and API integration ([@&#8203;appleboy](https://github.com/appleboy))
- [`036cad7`](https://github.com/appleboy/ssh-action/commit/036cad7df774e9168d1de6c77d668c6a292d4540): chore: update drone-ssh to version 1.7.7 ([@&#8203;appleboy](https://github.com/appleboy))
- [`8b60782`](https://github.com/appleboy/ssh-action/commit/8b6078208d71a6d9364c7f23d78ca9b38bed48c0): chore(cli): enhance version handling and testing mechanisms ([@&#8203;appleboy](https://github.com/appleboy))
- [`5ade826`](https://github.com/appleboy/ssh-action/commit/5ade82648576fb5118b586573e9c607af4941b24): chore: improve CLI reliability and version visibility ([@&#8203;appleboy](https://github.com/appleboy))
- [`eaeb069`](https://github.com/appleboy/ssh-action/commit/eaeb06998d86f5e66259ee8dc3d0909612f0ce65): chore(cli): enhance curl command with silent mode and redirects ([@&#8203;appleboy](https://github.com/appleboy))
- [`58164d0`](https://github.com/appleboy/ssh-action/commit/58164d0dc2b76ba5c47e110152e94bfbd13ea235): chore: remove Dockerfile and related configurations ([@&#8203;appleboy](https://github.com/appleboy))

##### Refactor

- [`da612c8`](https://github.com/appleboy/ssh-action/commit/da612c801589d64bea89ca943c84fe1aae7a1d06): refactor: optimize CI pipeline for faster execution ([@&#8203;appleboy](https://github.com/appleboy))

##### Build process updates

- [`c781418`](https://github.com/appleboy/ssh-action/commit/c78141851a6d716353b2ce13c978924e0300775e): ci: enhance GitHub Actions for IPv6 and flexibility ([#&#8203;303](https://github.com/appleboy/ssh-action/issues/303)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`d2d6858`](https://github.com/appleboy/ssh-action/commit/d2d68588591b705c406168accae85968a2f75c0d): ci: enhance GitHub workflow for SSH actions and deployments ([@&#8203;appleboy](https://github.com/appleboy))
- [`551964e`](https://github.com/appleboy/ssh-action/commit/551964ebda1034f0b5449d74db25c42e371ca1f7): ci: optimize GitHub Actions workflow configuration ([@&#8203;appleboy](https://github.com/appleboy))
- [`f916346`](https://github.com/appleboy/ssh-action/commit/f9163462563f649b27272d32e585525a5fe68d76): ci: refactor CI workflow and improve robustness ([#&#8203;320](https://github.com/appleboy/ssh-action/issues/320)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`aabaf12`](https://github.com/appleboy/ssh-action/commit/aabaf1254d78efafd55cd5880a874e9715b4c6e8): ci: add bug report template ([@&#8203;appleboy](https://github.com/appleboy))
- [`c8594ae`](https://github.com/appleboy/ssh-action/commit/c8594ae37d5bd9a779dc12abd0236b1bcff70119): ci: implement GitHub Actions for remote SSH execution ([@&#8203;appleboy](https://github.com/appleboy))
- [`40aad53`](https://github.com/appleboy/ssh-action/commit/40aad53c5a18b2676371816d258458b2ccd56c50): ci: add SSH authentication setup for GitHub Actions ([@&#8203;appleboy](https://github.com/appleboy))
- [`0b0e770`](https://github.com/appleboy/ssh-action/commit/0b0e77098a4fa59703014092ddd6d2ad7267088f): ci: optimize and enhance SSH server workflow ([@&#8203;appleboy](https://github.com/appleboy))
- [`977b74a`](https://github.com/appleboy/ssh-action/commit/977b74a12d4201105f3b851126516847ed6b80b0): ci: enhance CI workflow with SSH job and optimizations ([@&#8203;appleboy](https://github.com/appleboy))
- [`2eeab5b`](https://github.com/appleboy/ssh-action/commit/2eeab5bdbadfcfd821c3f107a694803080f4b126): ci: refactor GitHub Actions key management ([@&#8203;appleboy](https://github.com/appleboy))
- [`acd41e5`](https://github.com/appleboy/ssh-action/commit/acd41e5091e04c5db86c78f86723e9baec27f452): ci: enhance SSH job testing with varied key/password scenarios ([@&#8203;appleboy](https://github.com/appleboy))
- [`f05aefe`](https://github.com/appleboy/ssh-action/commit/f05aefe3514f74f9cda4825a2a5d9905aa45ae2a): ci: enhance SSH action configuration and error handling ([@&#8203;appleboy](https://github.com/appleboy))
- [`e40b597`](https://github.com/appleboy/ssh-action/commit/e40b597081b0c96e4f93bee63cec35d4ea3b4d3a): ci: add GitHub Actions job for SSH key passphrase support ([@&#8203;appleboy](https://github.com/appleboy))
- [`15b64dc`](https://github.com/appleboy/ssh-action/commit/15b64dc8919f9e984dd7c4e96fdd5d74ccc03088): ci: enhance CI pipeline with SSH key handling improvements ([@&#8203;appleboy](https://github.com/appleboy))
- [`a39b3cc`](https://github.com/appleboy/ssh-action/commit/a39b3cce7dbd84fb06164ac1a60a27615417de71): ci: enhance CI/CD pipeline with SSH command execution ([@&#8203;appleboy](https://github.com/appleboy))
- [`815c574`](https://github.com/appleboy/ssh-action/commit/815c5743ac3927b147e22309d57a1f5a140a2d30): ci: enhance deployment with multi-host SSH action ([@&#8203;appleboy](https://github.com/appleboy))
- [`378323e`](https://github.com/appleboy/ssh-action/commit/378323e4c85be1bb394f07e5a3a3c7c687499829): ci: add multi-server support to CI workflow ([@&#8203;appleboy](https://github.com/appleboy))
- [`fc1c1fc`](https://github.com/appleboy/ssh-action/commit/fc1c1fce5140b0530a36d88286de8a29df8518bb): ci: add GitHub Actions job for [`ed25519`](https://github.com/appleboy/ssh-action/commit/ed25519) key support ([@&#8203;appleboy](https://github.com/appleboy))
- [`f0e5a23`](https://github.com/appleboy/ssh-action/commit/f0e5a23d530cb42b84b01340c5fb1a6ad570d4e8): ci: add environment variable handling in GitHub Actions ([@&#8203;appleboy](https://github.com/appleboy))
- [`9c32aa6`](https://github.com/appleboy/ssh-action/commit/9c32aa61f8c24f38e93a3282178429b314c14e8a): ci: refactor workflows and API integrations ([@&#8203;appleboy](https://github.com/appleboy))
- [`97f8d75`](https://github.com/appleboy/ssh-action/commit/97f8d752b568999364c7296fa08e33d68367e3fd): ci: enable root access in CI pipeline ([@&#8203;appleboy](https://github.com/appleboy))
- [`5a8776f`](https://github.com/appleboy/ssh-action/commit/5a8776fd157405e3e88da24413b04c2aaf01e99c): ci: switch to password authentication in GitHub workflow ([@&#8203;appleboy](https://github.com/appleboy))
- [`b6941ae`](https://github.com/appleboy/ssh-action/commit/b6941ae5d5746e351d7fede90e718688304d2b4a): ci: refactor codebase and optimize performance ([@&#8203;appleboy](https://github.com/appleboy))
- [`43895f2`](https://github.com/appleboy/ssh-action/commit/43895f2cd585d373b747690a3e7f9bdcdd09e1cd): ci: refactor SSH testing workflows and job configurations ([@&#8203;appleboy](https://github.com/appleboy))
- [`06fa62e`](https://github.com/appleboy/ssh-action/commit/06fa62e61cac6c39015db4efcde64776f56965c4): ci: rename the workflow files. ([@&#8203;appleboy](https://github.com/appleboy))
- [`b4a07ca`](https://github.com/appleboy/ssh-action/commit/b4a07ca5940a7dc94925e99f8e6eab3671b0fa64): ci: enhance GitHub Actions with secret variable support ([#&#8203;330](https://github.com/appleboy/ssh-action/issues/330)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`25ce8cb`](https://github.com/appleboy/ssh-action/commit/25ce8cbbcb08177468c7ff7ec5cbfa236f9341e1): ci: implement automated release workflow with GoReleaser ([@&#8203;appleboy](https://github.com/appleboy))

##### Documentation updates

- [`8a779a5`](https://github.com/appleboy/ssh-action/commit/8a779a5b1a8a79465e63ce4724624b4755fed49b): docs: describe true usage of allenvs parameter ([#&#8203;301](https://github.com/appleboy/ssh-action/issues/301)) ([@&#8203;hussu010](https://github.com/hussu010))
- [`fe44be0`](https://github.com/appleboy/ssh-action/commit/fe44be0b96e09ca219322f172bc338fd0718a55b): docs: improve documentation and CI robustness ([@&#8203;appleboy](https://github.com/appleboy))
- [`dd0f09c`](https://github.com/appleboy/ssh-action/commit/dd0f09ca072e60babe3cc58ed83c66a86176300c): docs: improve README clarity and completeness ([@&#8203;appleboy](https://github.com/appleboy))
- [`71d43ea`](https://github.com/appleboy/ssh-action/commit/71d43ea0f75a1f73c9b0e4608c059783968ad29c): docs: improve documentation and testing configurations ([@&#8203;appleboy](https://github.com/appleboy))
- [`28428a1`](https://github.com/appleboy/ssh-action/commit/28428a13f5b0283d667b1c6501d144f15b059726): docs: improve cross-platform clipboard support for key copying ([@&#8203;appleboy](https://github.com/appleboy))
- [`d732991`](https://github.com/appleboy/ssh-action/commit/d732991ab09097d8c8f390d91385b0386e619598): docs(lang): README.zh-cn Document ([#&#8203;332](https://github.com/appleboy/ssh-action/issues/332)) ([@&#8203;astralwaveio](https://github.com/astralwaveio))

</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:eyJjcmVhdGVkSW5WZXIiOiI0Mi4yNi4xMSIsInVwZGF0ZWRJblZlciI6IjQyLjI2LjExIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://gitea.kovagoadi.hu/kovagoadi.hu/traefik/pulls/16
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
2025-12-01 10:03:23 +01:00
kovagoadi 23e65c4014 Merge pull request 'Pin dependencies' (#15) from renovate/pin-dependencies into main
Remote Deployment Pipeline / Prepare Context (push) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 46s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 47s
Reviewed-on: #15
2025-11-30 21:18:22 +01:00
renovate-bot de7c379fe2 Pin dependencies
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (pull_request) Successful in 9s
2025-11-30 03:23:40 +00:00
kovagoadiandkovagoadi 10a20a555d Added volume and set error exit (#14)
Remote Deployment Pipeline / Prepare Context (push) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 1m10s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 1m15s
Reviewed-on: #14
Co-authored-by: kovagoadi <[email protected]>
Co-committed-by: kovagoadi <[email protected]>
2025-11-29 19:55:18 +01:00
kovagoadiandkovagoadi a12904d7a6 Add LEGACY_NETWORK variable to environment files (#13)
Remote Deployment Pipeline / Prepare Context (push) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (push) Successful in 55s
Remote Deployment Pipeline / Deploy (Dev/Preview) (push) Has been skipped
Remote Deployment Pipeline / Cleanup Preview (push) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (push) Successful in 10m47s
Reviewed-on: #13
Co-authored-by: kovagoadi <[email protected]>
Co-committed-by: kovagoadi <[email protected]>
2025-11-29 19:41:51 +01:00
kovagoadi 17deabc0e9 Merge pull request 'Moved to real port numbers' (#12) from move-to-real-port into main
Remote Deployment Pipeline / Prepare deployment vars (push) Successful in 3s
Remote Deployment Pipeline / Create remote directory (push) Successful in 5s
Remote Deployment Pipeline / Cleanup MR environment (push) Has been skipped
Remote Deployment Pipeline / Sync repository files (push) Successful in 20s
Remote Deployment Pipeline / Run docker-compose remotely (Dev) (push) Has been skipped
Remote Deployment Pipeline / Run docker-compose remotely (Staging) (push) Successful in 6s
Remote Deployment Pipeline / Run docker-compose remotely (Prod) (push) Successful in 9s
Reviewed-on: #12
2025-11-28 00:13:53 +01:00
kovagoadi 960a5631d0 Moved to real port numbers
Remote Deployment Pipeline / Prepare deployment vars (pull_request) Successful in 3s
Remote Deployment Pipeline / Create remote directory (pull_request) Has been skipped
Remote Deployment Pipeline / Cleanup MR environment (pull_request) Successful in 9s
Remote Deployment Pipeline / Sync repository files (pull_request) Has been skipped
Remote Deployment Pipeline / Run docker-compose remotely (Dev) (pull_request) Has been skipped
Remote Deployment Pipeline / Run docker-compose remotely (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Run docker-compose remotely (Prod) (pull_request) Has been skipped
2025-11-28 00:12:41 +01:00
16 changed files with 540 additions and 184 deletions
+119 -170
View File
@@ -8,202 +8,151 @@ on:
types: [opened, synchronize, reopened, closed]
env:
# Base path for PR preview environments
# --- PATH CONFIGURATION ---
REMOTE_DEPLOY_PATH: /var/app/traefik/test
# --- CUSTOMIZABLE PRODUCTION PATH ---
# Set the absolute path for your production deployment on the remote server.
REMOTE_PROD_PATH: /var/app/traefik/prod
REMOTE_STAGING_PATH: /var/app/traefik/staging
# --- SECRETS ---
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_PORT: ${{ secrets.SSH_PORT || 22 }}
jobs:
prepare_deployment_vars:
name: Prepare deployment vars
# ------------------------------------------------------------------
# STAGE 1: PREPARE CONTEXT
# ------------------------------------------------------------------
prepare_context:
name: Prepare Context
runs-on: ubuntu-latest
outputs:
deploy_path: ${{ steps.set-vars.outputs.deploy_path }}
pr_path: ${{ steps.calc.outputs.pr_path }}
steps:
- name: Set deployment variables
id: set-vars
- id: calc
name: Prepare Context
run: |
REPO_NAME=$(echo "${{ github.repository }}" | cut -d '/' -f 2)
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
# For PRs, create a unique directory under the base path
DEPLOY_PATH="${REMOTE_DEPLOY_PATH}/${REPO_NAME}-pr-${{ github.event.pull_request.number }}"
else
# For 'main' branch, use the specified production path.
# Fallback to a default if REMOTE_PROD_PATH is empty.
DEPLOY_PATH="${REMOTE_PROD_PATH:-${REMOTE_DEPLOY_PATH}/main}"
echo "pr_path=${REMOTE_DEPLOY_PATH}/${REPO_NAME}-pr-${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT
fi
echo "DEPLOY_PATH=${DEPLOY_PATH}" >> $GITHUB_ENV
echo "deploy_path=${DEPLOY_PATH}" >> $GITHUB_OUTPUT
echo "DEPLOY_PATH will be: ${DEPLOY_PATH}"
create_remote_directory:
name: Create remote directory
# ------------------------------------------------------------------
# STAGE 2: DEPLOY PREVIEW (DEV)
# ------------------------------------------------------------------
deploy_preview:
name: Deploy (Dev/Preview)
runs-on: ubuntu-latest
needs: prepare_deployment_vars
if: |
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false)
|| github.ref == 'refs/heads/main'
needs: [prepare_context]
if: github.event_name == 'pull_request' && github.event.action != 'closed'
steps:
- name: Setup SSH
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
with:
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Add host to known_hosts
run: |
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || {
echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT"
exit 1
}
chmod 644 ~/.ssh/known_hosts
- name: Deploy via Rsync & Docker
uses: easingthemes/ssh-deploy@a1aa0b6cf96ce2406eef90faa35007a4a7bf0ac0 # v5.1.1
env:
SSH_PRIVATE_KEY: ${{ env.SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ env.SSH_HOST }}
REMOTE_USER: ${{ env.SSH_USER }}
REMOTE_PORT: ${{ env.SSH_PORT }}
TARGET: ${{ needs.prepare_context.outputs.pr_path }}
# Exclude git internals to save bandwidth
EXCLUDE: ".git/, .github/"
# 1. Create directory first
SCRIPT_BEFORE: |
mkdir -p ${{ needs.prepare_context.outputs.pr_path }}
# 2. Run Docker Compose after sync
SCRIPT_AFTER: |
set -e
cd ${{ needs.prepare_context.outputs.pr_path }}
docker compose --env-file dev.env -f docker-compose.yaml up -d --build --remove-orphans --wait
- name: Create directory on remote
run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "mkdir -p '${{ needs.prepare_deployment_vars.outputs.deploy_path }}'"
sync_repo_files:
name: Sync repository files
# ------------------------------------------------------------------
# STAGE 3: DEPLOY STAGING
# ------------------------------------------------------------------
deploy_staging:
name: Deploy (Staging)
runs-on: ubuntu-latest
needs: [create_remote_directory, prepare_deployment_vars]
if: |
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false)
|| github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
- name: Sync files via scp
uses: appleboy/scp-action@master
with:
host: ${{ env.SSH_HOST }}
username: ${{ env.SSH_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
port: ${{ env.SSH_PORT }}
source: "./"
target: "${{ needs.prepare_deployment_vars.outputs.deploy_path }}"
- name: Sync file via scp (staging)
if: github.ref == 'refs/heads/main'
uses: appleboy/scp-action@master
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Deploy via Rsync & Docker
uses: easingthemes/ssh-deploy@a1aa0b6cf96ce2406eef90faa35007a4a7bf0ac0 # v5.1.1
env:
SSH_PRIVATE_KEY: ${{ env.SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ env.SSH_HOST }}
REMOTE_USER: ${{ env.SSH_USER }}
REMOTE_PORT: ${{ env.SSH_PORT }}
TARGET: ${{ env.REMOTE_STAGING_PATH }}
EXCLUDE: ".git/, .github/"
SCRIPT_BEFORE: |
mkdir -p ${{ env.REMOTE_STAGING_PATH }}
SCRIPT_AFTER: |
set -e
cd ${{ env.REMOTE_STAGING_PATH }}
docker compose --env-file staging.env -f docker-compose.yaml up -d --build --remove-orphans --wait
# ------------------------------------------------------------------
# STAGE 4: DEPLOY PRODUCTION
# ------------------------------------------------------------------
deploy_prod:
name: Deploy (Production)
runs-on: ubuntu-latest
needs: [deploy_staging]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Deploy via Rsync & Docker
uses: easingthemes/ssh-deploy@a1aa0b6cf96ce2406eef90faa35007a4a7bf0ac0 # v5.1.1
env:
SSH_PRIVATE_KEY: ${{ env.SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ env.SSH_HOST }}
REMOTE_USER: ${{ env.SSH_USER }}
REMOTE_PORT: ${{ env.SSH_PORT }}
TARGET: ${{ env.REMOTE_PROD_PATH }}
EXCLUDE: ".git/, .github/"
SCRIPT_BEFORE: |
mkdir -p ${{ env.REMOTE_PROD_PATH }}
SCRIPT_AFTER: |
set -e
cd ${{ env.REMOTE_PROD_PATH }}
docker compose --env-file prod.env -f docker-compose.yaml -f docker-compose.prod.yaml up -d --build --remove-orphans --wait
# Run E2E Tests
echo "Running E2E tests..."
export CI=true
# Create venv to avoid polluting system python
python3 -m venv .venv
. .venv/bin/activate
pip install -r tests/e2e/requirements.txt
pytest tests/e2e/
# ------------------------------------------------------------------
# CLEANUP (Using appleboy/ssh-action for pure command execution)
# ------------------------------------------------------------------
cleanup:
name: Cleanup Preview
runs-on: ubuntu-latest
needs: [prepare_context]
if: github.event_name == 'pull_request' && (github.event.action == 'closed' || github.event.pull_request.merged == true)
steps:
- name: Remove Remote Environment
uses: appleboy/ssh-action@823bd89e131d8d508129f9443cad5855e9ba96f0 # v1.2.4
with:
host: ${{ env.SSH_HOST }}
username: ${{ env.SSH_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
port: ${{ env.SSH_PORT }}
source: "./"
target: ${{ env.REMOTE_STAGING_PATH }}
run_docker_compose_dev:
name: Run docker-compose remotely (Dev)
runs-on: ubuntu-latest
needs: [sync_repo_files, prepare_deployment_vars]
if: |
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false)
steps:
- name: Setup SSH
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
with:
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
- name: Add host to known_hosts
run: |
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || {
echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT"
exit 1
}
chmod 644 ~/.ssh/known_hosts
- name: Run docker-compose on remote host
run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "cd '${{ needs.prepare_deployment_vars.outputs.deploy_path }}' && docker-compose --env-file dev.env -f docker-compose.yaml up -d --build"
run_docker_compose_staging:
name: Run docker-compose remotely (Staging)
runs-on: ubuntu-latest
needs: [sync_repo_files, prepare_deployment_vars]
if: |
(github.ref == 'refs/heads/main')
steps:
- name: Setup SSH
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
with:
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
- name: Add host to known_hosts
run: |
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || {
echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT"
exit 1
}
chmod 644 ~/.ssh/known_hosts
- name: Run docker-compose on remote host
run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "cd '${REMOTE_STAGING_PATH}' && docker-compose --env-file staging.env -f docker-compose.yaml up -d --build"
run_docker_compose_prod:
name: Run docker-compose remotely (Prod)
runs-on: ubuntu-latest
needs: [sync_repo_files, prepare_deployment_vars]
if: |
(github.ref == 'refs/heads/main')
steps:
- name: Setup SSH
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
with:
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
- name: Add host to known_hosts
run: |
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || {
echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT"
exit 1
}
chmod 644 ~/.ssh/known_hosts
- name: Run docker-compose on remote host
run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "cd '${{ needs.prepare_deployment_vars.outputs.deploy_path }}' && docker-compose --env-file prod.env -f docker-compose.yaml up -d --build"
cleanup_mr_environment:
name: Cleanup MR environment
runs-on: ubuntu-latest
needs: prepare_deployment_vars
if: |
github.event_name == 'pull_request' &&
(github.event.action == 'closed' || github.event.pull_request.merged == true)
steps:
- name: Setup SSH
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
with:
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
- name: Add host to known_hosts
run: |
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || {
echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT"
exit 1
}
chmod 644 ~/.ssh/known_hosts
- name: Run docker-compose down on remote host
run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "cd '${{ needs.prepare_deployment_vars.outputs.deploy_path }}' && docker-compose down"
- name: Delete deployment directory
run: |
ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "if [ -d '${{ needs.prepare_deployment_vars.outputs.deploy_path }}' ]; then rm -rf '${{ needs.prepare_deployment_vars.outputs.deploy_path }}'; echo 'Directory removed.'; else echo 'Directory not found, skipping.'; fi"
script: |
TARGET="${{ needs.prepare_context.outputs.pr_path }}"
if [ -d "$TARGET" ]; then
cd "$TARGET"
docker compose down -v || true
cd ..
rm -rf "$TARGET"
echo "Cleanup successful"
else
echo "Directory not found, skipping."
fi
+2
View File
@@ -4,4 +4,6 @@ ENV=dev
NETWORK_NAME=proxy
CERTBOT_CA_RESOLVER=https://acme-staging-v02.api.letsencrypt.org/directory
DOMAIN=dev.kovagoadi.hu
ACME_BYPASS=false
TRAEFIK_LEGACY_OPT=
# TRAEFIK_LEGACY_OPT="--providers.file.directory=/etc/traefik"
+9
View File
@@ -0,0 +1,9 @@
services:
traefik:
networks:
- proxy
- legacy-nginx
networks:
legacy-nginx:
name: proxy
external: true
+11 -7
View File
@@ -1,12 +1,11 @@
services:
traefik:
image: "traefik:v3.6@sha256:aaf0f6185419a50c74651448c1a5bf4606bd2d2ddb7b8749eed505d55bf8b8ea"
image: "traefik:v3.6@sha256:67622638cd88dbfcfba40159bc652ecf0aea0e032f8a3c7e3134ae7c037b9910"
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- proxy
- legacy-nginx
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
@@ -14,6 +13,7 @@ services:
- "--providers.docker.constraints=Label(`env`, `${ENV}`)"
- "--entryPoints.web.address=:80"
- "--entryPoints.https.address=:443"
- "--entryPoints.web.allowACMEByPass=${ACME_BYPASS}"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.letsencrypt.acme.email=kovagoadi@gmail.com"
@@ -21,14 +21,17 @@ services:
- "--certificatesResolvers.letsencrypt.acme.caServer=${CERTBOT_CA_RESOLVER}"
- "${TRAEFIK_LEGACY_OPT:-}"
- "--providers.file.watch=true"
# extra_hosts:
# - "staging:${STAGING_IP:-192.168.1.85}"
# - "webserver:${LEGACY_IP:-192.168.1.85}"
ports:
- "${PORT}:80"
- "${HTTPS_PORT}:443"
- "8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./data/letsencrypt:/letsencrypt"
- "./${ENV}/forward-to-legacy-nginx.yaml:/etc/traefik/forward-to-legacy-nginx.yaml"
- "letsencrypt:/letsencrypt"
- "./${ENV}:/etc/traefik"
whoami:
image: "traefik/whoami@sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab"
@@ -38,7 +41,9 @@ services:
labels:
- "env=${ENV}"
- "traefik.enable=true"
- "traefik.http.routers.whoami.priority=100"
- "traefik.http.routers.whoami.rule=Host(`test-whoami.${DOMAIN}`)"
- "traefik.http.routers.https.priority=100"
- "traefik.http.routers.https.rule=Host(`test-whoami.${DOMAIN}`)"
- "traefik.http.routers.whoami.entrypoints=web"
- traefik.http.routers.https.entrypoints=https
@@ -46,6 +51,5 @@ services:
- traefik.http.routers.https.tls.certresolver=letsencrypt
networks:
proxy:
legacy-nginx:
name: proxy
external: true
volumes:
letsencrypt:
+4 -3
View File
@@ -1,7 +1,8 @@
PORT=81
HTTPS_PORT=444
PORT=80
HTTPS_PORT=443
ENV=prod
NETWORK_NAME=proxy
CERTBOT_CA_RESOLVER=https://acme-v02.api.letsencrypt.org/directory
DOMAIN=kovagoadi.hu
TRAEFIK_LEGACY_OPT="--providers.file.filename=/etc/traefik/forward-to-legacy-nginx.yaml"
ACME_BYPASS=true
TRAEFIK_LEGACY_OPT="--providers.file.directory=/etc/traefik"
+12 -4
View File
@@ -9,7 +9,7 @@ tcp:
# Passthrough must be true for SSL to reach Nginx encrypted
tls:
passthrough: true
priority: 1
priority: 10
entryPoints:
- "https"
@@ -23,12 +23,20 @@ tcp:
http:
routers:
# Router for HTTP
# 1. TRAEFIK-MANAGED ACME HANDLER (Removed manual router)
traefik-acme-handler:
rule: "Host(`test-whoami.kovagoadi.hu`) && PathPrefix(`/.well-known/acme-challenge/`)"
entryPoints:
- "web"
service: "acme-http@internal" # This is the internal service name
priority: 1000 # High priority to ensure it wins
# 2. THE HTTP CATCH-ALL (Sends other ACME and HTTP to Nginx)
nginx-legacy-router:
rule: "HostRegexp(`^.+$`)"
service: nginx-legacy-service
# Low priority ensures specific containers are handled first
priority: 1
# Low priority ensures specific containers are handled first, but before the default acme-handler
priority: 90
entryPoints:
- "web"
+33
View File
@@ -0,0 +1,33 @@
http:
routers:
# Router for HTTP (Port 80)
staging:
rule: "HostRegexp(`^.+\\.staging\\.kovagoadi\\.hu$`) || HostRegexp(`^.+\\.dev\\.kovagoadi\\.hu$`)"
entryPoints:
- "web"
service: "dev-staging"
priority: 1000
services:
dev-staging:
loadBalancer:
servers:
- url: "http://staging:8080"
tcp:
routers:
# Router for HTTPS (Passthrough)
dev-staging-secure:
rule: "HostSNIRegexp(`^.+\\.staging\\.kovagoadi\\.hu$`) || HostSNIRegexp(`^.+\\.dev\\.kovagoadi\\.hu$`)"
service: "dev-staging-secure"
# Passthrough must be true for SSL to reach Nginx encrypted
tls:
passthrough: true
priority: 1000
entryPoints:
- "https"
services:
dev-staging-secure:
loadBalancer:
servers:
# Note: Ensure Traefik trusts the cert at .85 or set insecureSkipVerify
- address: "staging:445"
+1
View File
@@ -4,4 +4,5 @@ ENV=staging
NETWORK_NAME=proxy
CERTBOT_CA_RESOLVER=https://acme-staging-v02.api.letsencrypt.org/directory
DOMAIN=staging.kovagoadi.hu
ACME_BYPASS=false
TRAEFIK_LEGACY_OPT=
+1
View File
@@ -0,0 +1 @@
__pycache__
+2
View File
@@ -0,0 +1,2 @@
pytest
requests
+221
View File
@@ -0,0 +1,221 @@
import pytest
import requests
import os
# Configuration
DOMAIN = os.getenv("DOMAIN", "dev.kovagoadi.hu")
PORT = os.getenv("PORT", "898")
HTTPS_PORT = os.getenv("HTTPS_PORT", "446")
BASE_URL = f"http://192.168.1.85:{PORT}"
HTTPS_BASE_URL = f"https://192.168.1.85:{HTTPS_PORT}"
HOST_HEADER = f"test-whoami.{DOMAIN}"
@pytest.fixture(scope="session", autouse=True)
def mock_webserver():
"""Start ephemeral mock webserver containers and configure Traefik."""
import time
# Skip ephemeral mocks in CI environment; test against real services
if os.getenv("CI"):
print("CI environment detected. Skipping ephemeral mock setup; testing against real services.")
yield
return
# In CI (Docker-in-Docker), we need to use the HOST path for volumes, not the container path.
# The workflow mounts the project root to /app, but the Docker daemon is on the host.
# We pass PROJECT_ROOT env var to the test container to tell it where the files are on the HOST.
cwd = os.getenv("PROJECT_ROOT", os.getcwd())
certs_dir = os.path.join(cwd, "tests/mock_nginx/certs")
image = "nginx:alpine"
# Define mocks
mocks = [
{
"name": "mock-legacy-ephemeral",
"alias": "webserver",
"conf": os.path.join(cwd, "tests/mock_nginx/legacy.conf"),
"ports": ["80", "443"]
},
{
"name": "mock-staging-ephemeral",
"alias": "mock",
"conf": os.path.join(cwd, "tests/mock_nginx/staging.conf"),
"ports": ["8080", "445"]
}
]
# Cleanup and Start Mocks
mock_ips = {}
for mock in mocks:
subprocess.run(["docker", "rm", "-f", mock["name"]], capture_output=True)
cmd = [
"docker", "run", "-d", "--rm",
"--name", mock["name"],
"--network", "proxy",
"--network-alias", mock["alias"],
"-v", f"{mock['conf']}:/etc/nginx/nginx.conf:ro",
"-v", f"{certs_dir}:/etc/nginx/certs:ro",
image
]
print(f"Starting {mock['name']}...")
result = subprocess.run(cmd, capture_output=True, text=True)
if result.returncode != 0:
print(f"STDOUT: {result.stdout}")
print(f"STDERR: {result.stderr}")
pytest.fail(f"Failed to start {mock['name']}: {result.stderr}")
# Inspect container to get IP
inspect_cmd = ["docker", "inspect", "-f", "{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}", mock["name"]]
inspect_res = subprocess.run(inspect_cmd, capture_output=True, text=True)
if inspect_res.returncode != 0:
pytest.fail(f"Failed to inspect {mock['name']}: {inspect_res.stderr}")
mock_ips[mock["alias"]] = inspect_res.stdout.strip()
print(f"{mock['name']} IP: {mock_ips[mock['alias']]}")
# Restart Traefik with IP env vars for extra_hosts
print(f"Restarting Traefik with STAGING_IP={mock_ips['mock']} and LEGACY_IP={mock_ips['webserver']}...")
env = os.environ.copy()
env["STAGING_IP"] = mock_ips["mock"]
env["LEGACY_IP"] = mock_ips["webserver"]
# In CI (Docker-in-Docker), we need to tell docker-compose that the project root
# is the HOST path (PROJECT_ROOT), not the container path (/app).
# This ensures volume mounts use the correct host paths.
if "PROJECT_ROOT" in os.environ:
env["COMPOSE_PROJECT_DIR"] = os.environ["PROJECT_ROOT"]
# We need to recreate the container to pick up extra_hosts changes
try:
subprocess.run(["docker-compose", "--env-file", "dev.env", "up", "-d", "--force-recreate", "--no-deps", "traefik"], env=env, check=True, capture_output=True, text=True)
except subprocess.CalledProcessError as e:
print(f"Docker Compose STDOUT: {e.stdout}")
print(f"Docker Compose STDERR: {e.stderr}")
raise e
# Wait for everything to settle
time.sleep(5)
yield
print("Stopping mocks and restoring Traefik...")
for mock in mocks:
subprocess.run(["docker", "stop", mock["name"]], capture_output=True)
# Restore Traefik to default (optional)
subprocess.run(["docker-compose", "--env-file", "dev.env", "up", "-d", "--force-recreate", "--no-deps", "traefik"], check=True)
def test_whoami_http_reachable():
"""Verify that the whoami service is reachable via HTTP."""
try:
response = requests.get(BASE_URL, headers={"Host": HOST_HEADER}, timeout=5)
assert response.status_code == 200
assert "Hostname:" in response.text
except requests.exceptions.RequestException as e:
pytest.fail(f"Failed to connect to {BASE_URL}: {e}")
import subprocess
def test_whoami_https_reachable():
"""Verify that the whoami service is reachable via HTTPS using curl (to handle SNI/DNS)."""
# We use curl because requests doesn't support --resolve easily to force SNI with custom IP
cmd = [
"curl", "-s", "-k", "--fail",
"--resolve", f"{HOST_HEADER}:{HTTPS_PORT}:192.168.1.85",
f"https://{HOST_HEADER}:{HTTPS_PORT}"
]
try:
result = subprocess.run(cmd, capture_output=True, text=True, timeout=10, check=True)
assert result.returncode == 0
except subprocess.CalledProcessError as e:
pytest.fail(f"Curl failed with exit code {e.returncode}: {e.stderr}")
except subprocess.TimeoutExpired:
pytest.fail("Curl timed out")
def test_https_redirect():
"""Verify that HTTP requests are NOT redirected to HTTPS (based on config, or check if they SHOULD be)."""
# Based on docker-compose, there is no global redirect middleware configured on the entrypoint.
# So HTTP should remain HTTP.
try:
response = requests.get(BASE_URL, headers={"Host": HOST_HEADER}, allow_redirects=False, timeout=5)
assert response.status_code == 200
except requests.exceptions.RequestException as e:
pytest.fail(f"Failed to connect to {BASE_URL}: {e}")
def test_unknown_host_404():
"""Verify that requests to an unknown host (hitting legacy-nginx catch-all) are routed to the mock."""
try:
# We use a domain that doesn't match the specific *.dev.kovagoadi.hu rules
# so it falls through to the catch-all 'nginx-legacy-router'
response = requests.get(BASE_URL + "/login", headers={"Host": "tar.kovagoadi.hu"}, timeout=5)
assert response.status_code == 200
except requests.exceptions.RequestException as e:
pytest.fail(f"Failed to connect to {BASE_URL}: {e}")
def test_unknown_host_https_passthrough():
"""Verify that HTTPS requests to an unknown host are passed through to the mock Nginx."""
# We use curl to handle SNI and self-signed certs
# unknown.com should hit the catch-all SNI router
cmd = [
"curl", "-s", "-k", "-i", "--fail",
"--resolve", f"tar.kovagoadi.hu:{HTTPS_PORT}:192.168.1.85",
f"https://tar.kovagoadi.hu:{HTTPS_PORT}/login"
]
try:
result = subprocess.run(cmd, capture_output=True, text=True, timeout=10, check=True)
assert result.returncode == 0
except subprocess.CalledProcessError as e:
pytest.fail(f"Curl failed with exit code {e.returncode}: {e.stderr}")
except subprocess.TimeoutExpired:
pytest.fail("Curl timed out")
def test_staging_http_routing():
"""Verify HTTP requests to *.staging.kovagoadi.hu are routed to the mock."""
host = "test-whoami.staging.kovagoadi.hu"
try:
response = requests.get(BASE_URL, headers={"Host": host}, timeout=5)
assert response.status_code == 200
except requests.exceptions.RequestException as e:
pytest.fail(f"Failed to connect to {BASE_URL} with host {host}: {e}")
def test_dev_http_routing():
"""Verify HTTP requests to *.dev.kovagoadi.hu are routed to the mock."""
host = "test-whoami.dev.kovagoadi.hu"
try:
response = requests.get(BASE_URL, headers={"Host": host}, timeout=5)
assert response.status_code == 200
except requests.exceptions.RequestException as e:
pytest.fail(f"Failed to connect to {BASE_URL} with host {host}: {e}")
def test_staging_https_routing():
"""Verify HTTPS requests to *.staging.kovagoadi.hu are routed to the mock."""
host = "test-whoami.staging.kovagoadi.hu"
cmd = [
"curl", "-s", "-k", "-i", "--fail",
"--resolve", f"{host}:{HTTPS_PORT}:192.168.1.85",
f"https://{host}:{HTTPS_PORT}"
]
try:
result = subprocess.run(cmd, capture_output=True, text=True, timeout=10, check=True)
assert result.returncode == 0
except subprocess.CalledProcessError as e:
pytest.fail(f"Curl failed with exit code {e.returncode}: {e.stderr}")
except subprocess.TimeoutExpired:
pytest.fail("Curl timed out")
def test_dev_https_routing():
"""Verify HTTPS requests to *.dev.kovagoadi.hu are routed to the mock."""
host = "test-whoami.dev.kovagoadi.hu"
cmd = [
"curl", "-s", "-k", "-i", "--fail",
"--resolve", f"{host}:{HTTPS_PORT}:192.168.1.85",
f"https://{host}:{HTTPS_PORT}"
]
try:
result = subprocess.run(cmd, capture_output=True, text=True, timeout=10, check=True)
assert result.returncode == 0
except subprocess.CalledProcessError as e:
pytest.fail(f"Curl failed with exit code {e.returncode}: {e.stderr}")
except subprocess.TimeoutExpired:
pytest.fail("Curl timed out")
+19
View File
@@ -0,0 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIDCzCCAfOgAwIBAgIUU5vuywVWaoDfFyee7NCy0BqXU3kwDQYJKoZIhvcNAQEL
BQAwFTETMBEGA1UEAwwKbW9jay1uZ2lueDAeFw0yNTEyMjUxNjAwMTNaFw0yNjEy
MjUxNjAwMTNaMBUxEzARBgNVBAMMCm1vY2stbmdpbngwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQCaoLrs78+HbDFB/HsXTy5nqtP7V33Js0GDWxk6QkOq
qbCtd5e2fzjkFFWkFIuouLEL1+4xW5txToaCtIYhQUgwST/Wu4wLlzrueRmprTh2
oTLbpSVXn6kO7dvDinsfelcjnLNgjRkkKPRYVvnCsrr2O9gFhClWf+WKMuNP99/O
4Y7Na4l6fyQAMjDSgdFjVvB+D9YMbkfNmo5hs009lF0Y6u35hIaY1NyfI+csvwWZ
j75I/1TGKQGwrmtG2U31xM8Y8mj7mye0IeXoIg8rl/efYVKRcEBahu0140t6A69g
N7kCSsGhl78VJEUVz5OuOSdV9UDwzawiHh/M+1KE3/3VAgMBAAGjUzBRMB0GA1Ud
DgQWBBQOgMuir6oD712l2GKpUoPo0RUcyDAfBgNVHSMEGDAWgBQOgMuir6oD712l
2GKpUoPo0RUcyDAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQAv
52u9mAOTKStdNZA4R68icJRXmOuxkTh9/rMdOYFF+GM2bMiX1DsvY9/VAFuy7EdZ
yfvu72JyaBDMljryz6doupXm9Do9um2sTU0YKkarV2EECYqt5uC56KWs9XZ9mnYW
wnTrLTbGZhRbGz4pq+Pq7Z1VUexV/Tnoxs5RlOaDxrlaS9htLfIR3dv2bhQiMGN9
1LESNZ16c3s4026pxeojCKFVf2GS+IBdbzljdUzBMVzwGl10UZQHfMDJptuW6JKo
rO5XVp5cLpLzSgUSGtGIoT2dR2Nk5kxGw4VbRCKKD7CDdS+JFypSwdg3v2oNfAmV
op1lOPZtztQRw/6zo4Ex
-----END CERTIFICATE-----
+28
View File
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCaoLrs78+HbDFB
/HsXTy5nqtP7V33Js0GDWxk6QkOqqbCtd5e2fzjkFFWkFIuouLEL1+4xW5txToaC
tIYhQUgwST/Wu4wLlzrueRmprTh2oTLbpSVXn6kO7dvDinsfelcjnLNgjRkkKPRY
VvnCsrr2O9gFhClWf+WKMuNP99/O4Y7Na4l6fyQAMjDSgdFjVvB+D9YMbkfNmo5h
s009lF0Y6u35hIaY1NyfI+csvwWZj75I/1TGKQGwrmtG2U31xM8Y8mj7mye0IeXo
Ig8rl/efYVKRcEBahu0140t6A69gN7kCSsGhl78VJEUVz5OuOSdV9UDwzawiHh/M
+1KE3/3VAgMBAAECggEANx57c5Fqj1IMXwLC2ATEPHUDGpHOB5PMEyhqnj9XwqK5
laRPYuEH5Rmwi4w9Wnf3uIqQ4GxQxTuiLD5wn7MXKgs6Y++31LvkaHSnprnWKkd9
Cxnb7Ve/GlDEqXgYOpjQLiQiNxUk9KRasZDTeElg5vxfHVxGpgxyROit6egokiR8
JNglP+zrHicuvzl4f2DGQmjF5C4HQgyFIVrBv+vNKlqKmg2HatKIqBE60u7uw6CI
/Q8ecqU9oVZscOF9T6hUJX0xijGSsE5UTR87U2zo0+fQRJ5qZ5pLjIuF5YiCi0eT
qZex+h1TuTHNFoc1gcAyj5eDZQwwzZiR/Lae/pDyYwKBgQDVPy/elkUkoDm/OlbE
g+wZpBAGGw2ACCK5SpgwRVmHEZUvBbNZgLfE0BydaK88eDTDbLpvfVNvMoNrZQTh
bAqt9XsFBzmfMusiDYbK3ebhooObEcc6I1GmU5fqHuDv3h0CaEli2JjPmB44mXr8
EGtl98nijNgAmbaA3p7IlWGeGwKBgQC5oPJOjSw6ZRywZwB220tIm0vMcp60sTmq
H+ESaNMkpB38T9OBTdprBjAUzDCZC4jKFwU03ZQtGIN9S6BhogqyP8BRI/+lGJRQ
ZLT1eVSHuC8bX1kVfb5tlahRQ2VUSj5cZxyOiZ8JXa1r1bf8/FZ/0tzLB4a7Ge5Z
2lyQXa3SzwKBgCGCDkmRn0fEDY7o4d17RUw6JXJwKczmel5XRFbBbvH0Z1a+NJJp
0XaRpQ1u96ou0Uur+Bewv72HWHM1qnCpg3wWSMBfhERpwdzV90pFWBQ4bymcv4t5
JUlXdVWKiJnocvJ/5JgtpMVqB8WpCFQ3WEjriMOakg52GOFjGdw27OHlAoGBAKmk
eezpvXK8dySLbXQx4zI+ol38nie6E13zdmixnczNo42zkjKIaMUISaaoGP20+dTe
huaSXVl9HqXCGJdBVI8kDejZgkdqGBkEgBAaSvMhkwNr9ujaGs7hR4rEkfUfSLB/
lyx4fvw7PULgdR3hqld06E0v2qRhBV/eXFufET0nAoGAaXKncm7o2LnMIcJV3qrk
c0darLx+VWg0ILnE3/6kGSgGGnMm93tEwSX8h7Nq7QRNkVLUalVAcjm7jR9XGNsY
W8oXqsyqmntNSA2f9w4MqYO2/i/xtN830qW2nw/RLLV5avD6EkY2KrlFbrrZQr2y
q8oFyEAxJc8Kmo5ocnrPq1s=
-----END PRIVATE KEY-----
+26
View File
@@ -0,0 +1,26 @@
events {}
http {
server {
listen 80;
server_name _;
location / {
add_header X-Mock-Service "legacy";
return 200 "Mock Nginx Legacy HTTP\n";
}
}
server {
listen 443 ssl;
server_name _;
ssl_certificate /etc/nginx/certs/server.crt;
ssl_certificate_key /etc/nginx/certs/server.key;
location / {
add_header X-Mock-Service "legacy";
return 200 "Mock Nginx Legacy HTTPS\n";
}
}
}
+26
View File
@@ -0,0 +1,26 @@
events {}
http {
server {
listen 80;
server_name _;
location / {
add_header X-Mock-Service "true";
return 200 "Mock Nginx HTTP\n";
}
}
server {
listen 443 ssl;
server_name _;
ssl_certificate /etc/nginx/certs/server.crt;
ssl_certificate_key /etc/nginx/certs/server.key;
location / {
add_header X-Mock-Service "true";
return 200 "Mock Nginx HTTPS\n";
}
}
}
+26
View File
@@ -0,0 +1,26 @@
events {}
http {
server {
listen 8080;
server_name _;
location / {
add_header X-Mock-Service "staging";
return 200 "Mock Nginx Staging HTTP\n";
}
}
server {
listen 445 ssl;
server_name _;
ssl_certificate /etc/nginx/certs/server.crt;
ssl_certificate_key /etc/nginx/certs/server.key;
location / {
add_header X-Mock-Service "staging";
return 200 "Mock Nginx Staging HTTPS\n";
}
}
}