actions-github (#58)

Reviewed-on: #58
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-committed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
This commit is contained in:
2025-10-08 06:45:16 +00:00
committed by Tino Schreiber
parent ca9c822495
commit 1ed083a057
4 changed files with 78 additions and 12 deletions

View File

@ -6,17 +6,27 @@ jobs:
tox-docs:
runs-on: ubuntu-latest
steps:
{%- if environment == 'internal' %}
- uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
with:
tox-env: docs
- name: Upload documentation preview
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
{%- elif environment == 'public' %}
- uses: opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
with:
tox-env: docs
- name: Upload documentation preview
uses: opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
{%- endif %}
with:
docs_path: "doc/build/html"
docs_service: {{ service_uri }}
swift_container: "gitea_action_logs"
{%- if environment == 'internal' %}
{% raw -%}
swift_container: "gitea_action_logs"
otc_swift_username: ${{ secrets.OTC_SWIFT_USERNAME }}
otc_swift_password: ${{ secrets.OTC_SWIFT_PASSWORD }}
otc_swift_project_name: ${{ secrets.OTC_SWIFT_PROJECT_NAME }}
@ -27,4 +37,20 @@ jobs:
repo: ${{ gitea.repository }}
pr_number: ${{ gitea.event.pull_request.number }}
run_id: ${{ gitea.run_id }}
{%- endraw %}
ci_platform: gitea
{%- endraw %}
{%- elif environment == 'public' %}
{% raw -%}
swift_container: "gh_action_logs"
otc_swift_username: ${{ secrets.OTC_SWIFT_USERNAME }}
otc_swift_password: ${{ secrets.OTC_SWIFT_PASSWORD }}
otc_swift_project_name: ${{ secrets.OTC_SWIFT_PROJECT_NAME }}
otc_swift_domain: ${{ secrets.OTC_SWIFT_DOMAIN }}
otc_swift_endpoint: ${{ secrets.OTC_SWIFT_ENDPOINT }}
github_token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
pr_number: ${{ github.event.pull_request.number }}
run_id: ${{ github.run_id }}
ci_platform: github
{%- endraw %}
{%- endif %}