Bump com.webauthn4j:webauthn4j-test from 0.31.6.RELEASE to 0.31.7.RELEASE #326
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Build and publish docker image | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| push_to_registry: | |
| type: boolean | |
| default: false | |
| description: Publish to registry? | |
| environment: | |
| type: environment | |
| default: docker-internal | |
| description: Select the environment | |
| pull_request: | |
| branches: | |
| - 'develop' | |
| - 'releases/*' | |
| paths: | |
| - '**' | |
| - '!docs/**' | |
| - 'docs/db/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| set-environment: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| environment: ${{ steps.set-env.outputs.environment }} | |
| should_push: ${{ steps.set-env.outputs.should_push }} | |
| steps: | |
| - name: Set Environment | |
| uses: wultra/wultra-infrastructure/.github/actions/set-env@develop | |
| id: set-env | |
| with: | |
| push_to_registry: ${{ inputs.push_to_registry }} | |
| environment: ${{ inputs.environment }} | |
| build: | |
| runs-on: 'ubuntu-latest' | |
| needs: set-environment | |
| environment: ${{ needs.set-environment.outputs.environment }} | |
| env: | |
| # these are global secrets | |
| INTERNAL_USERNAME: ${{ secrets.JFROG_USERNAME }} | |
| INTERNAL_PASSWORD: ${{ secrets.JFROG_PASSWORD }} | |
| ACR_REGISTRY_URL: ${{ vars.ACR_REGISTRY_URL }} | |
| ACR_USERNAME: ${{ vars.ACR_USERNAME }} | |
| ACR_PASSWORD: ${{ secrets.ACR_PASSWORD }} | |
| DISTRIBUTION_REGISTRY_URL: ${{ vars.DISTRIBUTION_REGISTRY_URL }} | |
| DISTRIBUTION_USERNAME: ${{ vars.DISTRIBUTION_USERNAME }} | |
| DISTRIBUTION_PASSWORD: ${{ secrets.DISTRIBUTION_PASSWORD }} | |
| COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} | |
| COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }} | |
| COSIGN_PUBLIC_KEY: ${{ secrets.COSIGN_PUBLIC_KEY }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Java | |
| uses: wultra/wultra-infrastructure/.github/actions/setup-java@develop | |
| - name: Install Cosign | |
| if: ${{ needs.set-environment.outputs.should_push == 'true' }} | |
| uses: wultra/wultra-infrastructure/.github/actions/install-cosign@develop | |
| - name: Build Maven project | |
| uses: wultra/wultra-infrastructure/.github/actions/build-maven@develop | |
| id: build-maven | |
| with: | |
| module_to_build: 'powerauth-java-server' | |
| project_path: '' | |
| generate_sbom: 'true' | |
| - name: Resolve Docker tags | |
| uses: wultra/wultra-infrastructure/.github/actions/resolve-docker-tags@develop | |
| id: resolve-docker-tags | |
| with: | |
| app_to_build: 'powerauth-server' | |
| app_version: ${{ steps.build-maven.outputs.app_version }} | |
| - name: Build and push Docker image | |
| uses: wultra/wultra-infrastructure/.github/actions/build-and-push-docker@develop | |
| with: | |
| dockerfile_folder_path: './powerauth-java-server/docker' | |
| should_push: ${{ needs.set-environment.outputs.should_push }} | |
| tags: ${{ steps.resolve-docker-tags.outputs.tags }} | |
| has_sbom: true | |
| - name: Build and push Docker init image | |
| uses: wultra/wultra-infrastructure/.github/actions/build-and-push-docker@develop | |
| with: | |
| dockerfile_folder_path: './powerauth-java-server/docker-init' | |
| should_push: ${{ needs.set-environment.outputs.should_push }} | |
| tags: ${{ steps.resolve-docker-tags.outputs.init_tags }} | |
| has_sbom: false |