From 94505f471e5c883d9b017acb8f804c7790cb0ca9 Mon Sep 17 00:00:00 2001 From: skifahrer Date: Wed, 25 Sep 2024 14:31:02 +0200 Subject: [PATCH 1/2] added fetch-depth on deploy.yml --- .github/workflows/deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 05ccb0bb8..8ed2a7ea4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,6 +16,7 @@ jobs: directory: forms-shared/ build_image_no_registry: '' tag: '--tag=${{ github.ref_name }}-${{ github.sha }}' + fetch-depth: 1 secrets: registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -35,6 +36,7 @@ jobs: url: https://tkg.dev.bratislava.sk debug: --debug version: beta + fetch-depth: 1 secrets: service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -51,6 +53,7 @@ jobs: url: https://tkg.dev.bratislava.sk debug: --debug version: beta + fetch-depth: 1 secrets: service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -66,6 +69,7 @@ jobs: url: https://tkg.dev.bratislava.sk debug: --debug version: beta + fetch-depth: 1 secrets: service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -82,6 +86,7 @@ jobs: url: https://tkg.dev.bratislava.sk debug: --debug version: beta + fetch-depth: 1 secrets: service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -97,6 +102,7 @@ jobs: url: https://tkg.dev.bratislava.sk debug: --debug version: beta + fetch-depth: 1 secrets: service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -112,6 +118,7 @@ jobs: url: https://tkg.dev.bratislava.sk debug: --debug version: beta + fetch-depth: 1 secrets: service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -127,6 +134,7 @@ jobs: url: https://tkg.dev.bratislava.sk debug: --debug version: beta + fetch-depth: 1 secrets: service-account: ${{ secrets.DEV_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -143,6 +151,7 @@ jobs: url: https://tkg.staging.bratislava.sk debug: --debug flag: --staging + fetch-depth: 1 secrets: service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -159,6 +168,7 @@ jobs: url: https://tkg.staging.bratislava.sk debug: --debug flag: --staging + fetch-depth: 1 secrets: service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -174,6 +184,7 @@ jobs: url: https://tkg.staging.bratislava.sk debug: --debug flag: --staging + fetch-depth: 1 secrets: service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -190,6 +201,7 @@ jobs: url: https://tkg.staging.bratislava.sk debug: --debug flag: --staging + fetch-depth: 1 secrets: service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -205,6 +217,7 @@ jobs: url: https://tkg.staging.bratislava.sk debug: --debug flag: --staging + fetch-depth: 1 secrets: service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -220,6 +233,7 @@ jobs: url: https://tkg.staging.bratislava.sk debug: --debug flag: --staging + fetch-depth: 1 secrets: service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -235,6 +249,7 @@ jobs: url: https://tkg.staging.bratislava.sk debug: --debug flag: --staging + fetch-depth: 1 secrets: service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }} registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -250,6 +265,7 @@ jobs: cluster: tkg-innov-prod url: https://tkg.bratislava.sk flag: --production + fetch-depth: 1 debug: --debug secrets: service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} @@ -266,6 +282,7 @@ jobs: cluster: tkg-innov-prod url: https://tkg.bratislava.sk flag: --production + fetch-depth: 1 debug: --debug secrets: service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} @@ -281,6 +298,7 @@ jobs: cluster: tkg-innov-prod url: https://tkg.bratislava.sk flag: --production + fetch-depth: 1 debug: --debug secrets: service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} @@ -297,6 +315,7 @@ jobs: cluster: tkg-innov-prod url: https://tkg.bratislava.sk flag: --production + fetch-depth: 1 debug: --debug secrets: service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} @@ -312,6 +331,7 @@ jobs: cluster: tkg-innov-prod url: https://tkg.bratislava.sk flag: --production + fetch-depth: 1 debug: --debug secrets: service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} @@ -327,6 +347,7 @@ jobs: cluster: tkg-innov-prod url: https://tkg.bratislava.sk flag: --production + fetch-depth: 1 debug: --debug secrets: service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} @@ -342,6 +363,7 @@ jobs: cluster: tkg-innov-prod url: https://tkg.bratislava.sk flag: --production + fetch-depth: 1 debug: --debug secrets: service-account: ${{ secrets.PROD_STANDALONE_TOKEN }} From 79c476da4210c9e629dc2df4280ff9fbb9f3b6b8 Mon Sep 17 00:00:00 2001 From: skifahrer Date: Wed, 25 Sep 2024 14:56:31 +0200 Subject: [PATCH 2/2] added fetch-depth on validate pipelines --- .github/workflows/validate-and-build.yml | 5 +++++ .github/workflows/validate-forms-shared-konto.yml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/validate-and-build.yml b/.github/workflows/validate-and-build.yml index fcd748056..3d3de18c8 100644 --- a/.github/workflows/validate-and-build.yml +++ b/.github/workflows/validate-and-build.yml @@ -17,6 +17,7 @@ jobs: directory: forms-shared/ build_image_no_registry: '' tag: '--tag=${{ github.sha }}' + fetch-depth: 1 secrets: registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} @@ -44,6 +45,7 @@ jobs: directory: next/ build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.sha }}"' debug: --debug + fetch-depth: 1 secrets: registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} permissions: write-all @@ -56,6 +58,7 @@ jobs: with: directory: strapi/ debug: --debug + fetch-depth: 1 permissions: write-all validate-nest-forms-backend: @@ -75,6 +78,7 @@ jobs: with: directory: nest-forms-backend/ build_arg: '--build_arg="FORMS_SHARED_TAG=${{ github.sha }}"' + fetch-depth: 1 secrets: registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} permissions: write-all @@ -95,6 +99,7 @@ jobs: uses: bratislava/github-actions/.github/workflows/build-with-bratiska-cli-inhouse.yml@stable with: directory: nest-clamav-scanner/ + fetch-depth: 1 secrets: registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }} permissions: write-all diff --git a/.github/workflows/validate-forms-shared-konto.yml b/.github/workflows/validate-forms-shared-konto.yml index 782f71c5d..3e14738f0 100644 --- a/.github/workflows/validate-forms-shared-konto.yml +++ b/.github/workflows/validate-forms-shared-konto.yml @@ -23,6 +23,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 1 - name: Pipelines Version run: |