Skip to content

Commit

Permalink
Added option for fetch-depth on build and deploy pipelines (#31)
Browse files Browse the repository at this point in the history
updated version and
added option for fetch-depth
  • Loading branch information
skifahrer authored Sep 25, 2024
1 parent b4e4b8d commit ef1d797
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 14 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-with-bratiska-cli-inhouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ on:
default: ''
required: false
type: string
fetch-depth:
description: 'Defining fetch-depth'
default: 0
required: false
type: number

secrets:
sentry-token:
Expand All @@ -67,11 +72,11 @@ jobs:
- name: Checking out
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: ${{ inputs.fetch-depth }}

- name: Pipelines Version
run: |
echo "Pipelines version: 2.3.0"
echo "Pipelines version: 2.3.1"
- name: Directory check
run: pwd
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build-with-bratiska-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ on:
default: ''
required: false
type: string
fetch-depth:
description: 'Defining fetch-depth'
default: 0
required: false
type: number

secrets:
sentry-token:
Expand All @@ -62,11 +67,11 @@ jobs:
- name: Checking out
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: ${{ inputs.fetch-depth }}

- name: Pipelines Version
run: |
echo "Pipelines version: 2.3.0"
echo "Pipelines version: 2.3.1"
- name: Directory check
run: pwd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
default: 'stable'
required: false
type: string
fetch-depth:
description: 'Defining fetch-depth'
default: 0
required: false
type: number

jobs:
create-kustomize-with-bratiska-cli:
Expand All @@ -34,11 +39,11 @@ jobs:
- name: Checking out
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: ${{ inputs.fetch-depth }}

- name: Pipelines Version
run: |
echo "Pipelines version: 2.3.0"
echo "Pipelines version: 2.3.1"
- name: Directory check
run: pwd
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/create-kustomize-with-bratiska-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
default: 'stable'
required: false
type: string
fetch-depth:
description: 'Defining fetch-depth'
default: 0
required: false
type: number

jobs:
create-kustomize-with-bratiska-cli:
Expand All @@ -29,11 +34,11 @@ jobs:
- name: Checking out
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: ${{ inputs.fetch-depth }}

- name: Pipelines Version
run: |
echo "Pipelines version: 2.3.0"
echo "Pipelines version: 2.3.1"
- name: Directory check
run: pwd
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/deploy-with-bratiska-cli-inhouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ on:
default: ''
required: false
type: string
fetch-depth:
description: 'Defining fetch-depth'
default: 0
required: false
type: number

secrets:
sentry-token:
Expand All @@ -88,11 +93,11 @@ jobs:
- name: Checking out
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: ${{ inputs.fetch-depth }}

- name: Pipelines Version
run: |
echo "Pipelines version: 2.3.0"
echo "Pipelines version: 2.3.1"
- name: Directory check
run: pwd
Expand Down Expand Up @@ -160,4 +165,4 @@ jobs:
- name: Print pipeline summary
run: |
echo "### Deployment summary :ship:" >> $GITHUB_STEP_SUMMARY
echo ":partying_face: Bratiska-cli successfully deployed to ${{ inputs.cluster }}" >> $GITHUB_STEP_SUMMARY
echo ":partying_face: Bratiska-cli successfully deployed to ${{ inputs.cluster }}" >> $GITHUB_STEP_SUMMARY
11 changes: 8 additions & 3 deletions .github/workflows/deploy-with-bratiska-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ on:
default: ''
required: false
type: string
fetch-depth:
description: 'Defining fetch-depth'
default: 0
required: false
type: number

secrets:
sentry-token:
Expand All @@ -83,11 +88,11 @@ jobs:
- name: Checking out
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: ${{ inputs.fetch-depth }}

- name: Pipelines Version
run: |
echo "Pipelines version: 2.3.0"
echo "Pipelines version: 2.3.1"
- name: Directory check
run: pwd
Expand Down Expand Up @@ -153,4 +158,4 @@ jobs:
- name: Print pipeline summary
run: |
echo "### Deployment summary :ship:" >> $GITHUB_STEP_SUMMARY
echo ":partying_face: Bratiska-cli successfully deployed to ${{ inputs.cluster }}" >> $GITHUB_STEP_SUMMARY
echo ":partying_face: Bratiska-cli successfully deployed to ${{ inputs.cluster }}" >> $GITHUB_STEP_SUMMARY

0 comments on commit ef1d797

Please sign in to comment.