From 1966ffb4f4cc089c5293053b60b39dbc308f5397 Mon Sep 17 00:00:00 2001 From: --show-origin Date: Fri, 24 May 2024 02:06:46 -0700 Subject: [PATCH] fix(build-image-frontend): add environment variables for legal-notice.sh and use tree for source --- .github/workflows/build-image-frontend.yml | 4 ++++ frontend/src/assets/aboutPage.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image-frontend.yml b/.github/workflows/build-image-frontend.yml index 33a647d7..3c670327 100644 --- a/.github/workflows/build-image-frontend.yml +++ b/.github/workflows/build-image-frontend.yml @@ -39,6 +39,10 @@ on: env: IMAGE_NAMESPACE: "tractusx" IMAGE_NAME: "app-puris-frontend" + REF_NAME: "${{ github.ref_name }}" + # variables needed for scripts/legal-notice.sh + SERVER_URL: "${{ github.server_url }}" + REPOSITORY: "${{ github.repository }}" jobs: docker: diff --git a/frontend/src/assets/aboutPage.json b/frontend/src/assets/aboutPage.json index add93179..1deede4d 100644 --- a/frontend/src/assets/aboutPage.json +++ b/frontend/src/assets/aboutPage.json @@ -21,7 +21,7 @@ { "header": "Source URL", "body": "Eclipse-Tractus-X", - "link": "SERVER_URL_PLACEHOLDER/REPOSITORY_PLACEHOLDER/blob/REF_PLACEHOLDER/" + "link": "SERVER_URL_PLACEHOLDER/REPOSITORY_PLACEHOLDER/tree/REF_PLACEHOLDER/" }, { "header": "Commit ID",