gh-actions

This commit is contained in:
2025-10-02 12:28:05 +00:00
parent 8500bdb658
commit 6cb27fbadb
3 changed files with 54 additions and 10 deletions

View File

@ -15,8 +15,9 @@ jobs:
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 +28,19 @@ jobs:
repo: ${{ gitea.repository }}
pr_number: ${{ gitea.event.pull_request.number }}
run_id: ${{ gitea.run_id }}
{%- endraw %}
{%- endraw %}
{%- elif environment == 'public' %}
{% raw -%}
swift_container: "github_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 }}
gitea_token: ${{ secrets.GITHUB_TOKEN }}
gitea_server_url: ${{ github.server_url }}
repo: ${{ github.repository }}
pr_number: ${{ github.event.pull_request.number }}
run_id: ${{ github.run_id }}
{%- endraw %}
{%- endif %}

View File

@ -15,8 +15,9 @@ jobs:
with:
docs_path: "doc/build/pdf"
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 +28,19 @@ jobs:
repo: ${{ gitea.repository }}
pr_number: ${{ gitea.event.pull_request.number }}
run_id: ${{ gitea.run_id }}
{%- endraw %}
{%- endraw %}
{%- elif environment == 'public' %}
{% raw -%}
swift_container: "github_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 }}
gitea_token: ${{ secrets.GITHUB_TOKEN }}
gitea_server_url: ${{ github.server_url }}
repo: ${{ github.repository }}
pr_number: ${{ github.event.pull_request.number }}
run_id: ${{ github.run_id }}
{%- endraw %}
{%- endif %}