Skip to content

Commit

Permalink
TECH-1577 Remove --stacktrace flags (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisojandu-sympower authored Oct 31, 2024
1 parent 0bbae03 commit 5cf596a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 14 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release-for-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
required: false
type: string
default: 'ubuntu-latest'
additional-gradle-args:
description: 'Additional arguments to pass to the Gradle commands'
required: false
type: string
default: ""
outputs:
version:
description: Version number of the image released to ECR
Expand All @@ -26,20 +31,21 @@ jobs:
steps:
- id: setup-build-environment
name: "Setup build environment"
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
secrets: ${{ env.secrets }}
- id: format-version
name: "Format version"
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
style-as-release: ${{ env.IS_DEFAULT_BRANCH }}
- id: build-and-upload-docker-image
name: "Build and upload Docker Image"
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
version: ${{ steps.format-version.outputs.version }}
additional-gradle-args: ${{ inputs.additional-gradle-args }}
- id: upload-build-artifacts
name: "Upload build artifacts"
if: always()
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
31 changes: 21 additions & 10 deletions .github/workflows/release-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
required: false
type: string
default: 'ubuntu-latest'
additional-gradle-args:
description: 'Additional arguments to pass to the Gradle commands'
required: false
type: string
default: ""
outputs:
version:
description: Version number of the image released to ECR
Expand All @@ -29,30 +34,34 @@ jobs:
steps:
- id: setup-build-environment
name: "Setup build environment"
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
secrets: ${{ env.secrets }}
- id: format-version
name: "Format version"
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
style-as-release: ${{ env.IS_DEFAULT_BRANCH }}
- id: run-tests
name: "Run tests"
uses: sympower/sympower-composite-actions/[email protected]
uses: sympower/sympower-composite-actions/[email protected]
with:
additional-gradle-args: ${{ inputs.additional-gradle-args }}
- id: code-analysis
name: "Code analysis"
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
secrets: ${{ env.secrets }}
additional-gradle-args: ${{ inputs.additional-gradle-args }}

### Steps run only in default branch ###
- id: build-and-upload-docker-image
name: "Build and upload Docker Image"
if: env.IS_DEFAULT_BRANCH == 'true'
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
version: ${{ steps.format-version.outputs.version }}
additional-gradle-args: ${{ inputs.additional-gradle-args }}
- run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
if: env.IS_DEFAULT_BRANCH == 'true'
shell: bash
Expand All @@ -69,29 +78,31 @@ jobs:
- id: upload-avro-schema
name: "Upload Avro schema"
if: env.IS_DEFAULT_BRANCH == 'true'
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
version: ${{ steps.format-version.outputs.version }}
secrets: ${{ env.secrets }}
gistID: ${{ inputs.gistID }}
additional-gradle-args: ${{ inputs.additional-gradle-args }}
- id: upload-openapi-schema
name: "Upload OpenAPI schema"
if: env.IS_DEFAULT_BRANCH == 'true'
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
version: ${{ steps.format-version.outputs.version }}
secrets: ${{ env.secrets }}
gistID: ${{ inputs.gistID }}
additional-gradle-args: ${{ inputs.additional-gradle-args }}
- id: upload-pacts
name: "Upload pacts"
if: env.IS_DEFAULT_BRANCH == 'true'
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
version: ${{ steps.format-version.outputs.version }}
- id: deploy-staging
name: "Deploy staging"
if: env.IS_DEFAULT_BRANCH == 'true'
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69
with:
secrets: ${{ env.secrets }}
version: ${{ steps.format-version.outputs.version }}
Expand All @@ -101,4 +112,4 @@ jobs:
- id: upload-build-artifacts
name: "Upload build artifacts"
if: always()
uses: sympower/sympower-composite-actions/[email protected].07.10.09-c42a2ac
uses: sympower/sympower-composite-actions/[email protected].30.15.01-8580c69

0 comments on commit 5cf596a

Please sign in to comment.