diff --git a/.github/workflows/reusable-container-publication.yml b/.github/workflows/reusable-container-publication.yml index e2160c6..e2e6965 100644 --- a/.github/workflows/reusable-container-publication.yml +++ b/.github/workflows/reusable-container-publication.yml @@ -108,7 +108,7 @@ jobs: username: ${{ secrets.container-registry-username }} password: ${{ secrets.container-registry-password }} - name: Build container image - run: docker build . --file ${{ inputs.image-definition }} --tag ${{ env.IMAGE_REF }} ${{ secrets.extra-build-arguments }} + run: docker build . --file ${{ inputs.image-definition }} --tag ${{ env.IMAGE_REF }} ${{ inputs.extra-build-arguments }} shell: bash - name: Generate SBOM with Syft uses: anchore/sbom-action@v0 diff --git a/.github/workflows/reusable-dotnet-quality.yml b/.github/workflows/reusable-dotnet-quality.yml index ce6a604..4f97cf9 100644 --- a/.github/workflows/reusable-dotnet-quality.yml +++ b/.github/workflows/reusable-dotnet-quality.yml @@ -3,6 +3,11 @@ name: Reusable - .NET quality on: workflow_call: inputs: + custom-commands: + description: "Optional shell commands to run before build & test" + type: string + required: false + default: "" dotnet-version: description: .NET version type: string @@ -107,6 +112,10 @@ jobs: - name: Start MongoDB if: ${{ inputs.mongodb-enabled }} uses: ./workflow-parts/actions/mongodb/start + - name: Run optional custom commands + if: ${{ inputs.custom-commands != '' }} + run: | + ${{ inputs.custom-commands }} - name: Build & test if: ${{ ! inputs.sonar-enabled }} uses: ./workflow-parts/actions/dotnet/build-test