From 109a9b27cf0591f0f6e41180221369497055f576 Mon Sep 17 00:00:00 2001 From: meysamhadeli Date: Mon, 13 Feb 2023 22:43:18 +0330 Subject: [PATCH] chore: Update identity server --- .github/actions/docker-build-publish/action.yml | 9 +++++++-- .github/workflows/ci.yml | 4 ++++ .../Infrastructure/IdentityServerExtensions.cs | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/actions/docker-build-publish/action.yml b/.github/actions/docker-build-publish/action.yml index efa20fb..c79814d 100644 --- a/.github/actions/docker-build-publish/action.yml +++ b/.github/actions/docker-build-publish/action.yml @@ -34,15 +34,20 @@ runs: username: ${{ inputs.registry-username }} password: ${{ inputs.registry-password }} + - name: Docker Tag Info + shell: bash + run: + echo "Docker tag version is:" ${{ inputs.tag-name }} + - name: Build Docker Image if: ${{ github.ref == 'refs/heads/main' && success() }} shell: bash run: | - docker build -t ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.1 -f "${{ github.workspace }}/${{ inputs.dockerfile-path }}" . + docker build -t ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.2 -f "${{ github.workspace }}/${{ inputs.dockerfile-path }}" . - name: Publish Docker Image if: ${{ github.ref == 'refs/heads/main' && success() }} shell: bash run: | - docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.1 + docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc4efc4..81454dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Release Version Info + run: + echo "Release version is:" ${{ steps.last_release.outputs.tag_name }} + - name: Build and Publish Identity to Docker if: ${{ github.ref == 'refs/heads/main' && success() }} uses: ./.github/actions/docker-build-publish diff --git a/src/Services/Identity/src/Identity/Extensions/Infrastructure/IdentityServerExtensions.cs b/src/Services/Identity/src/Identity/Extensions/Infrastructure/IdentityServerExtensions.cs index 8c0bf6e..1b59010 100644 --- a/src/Services/Identity/src/Identity/Extensions/Infrastructure/IdentityServerExtensions.cs +++ b/src/Services/Identity/src/Identity/Extensions/Infrastructure/IdentityServerExtensions.cs @@ -43,6 +43,8 @@ public static class IdentityServerExtensions //ref: https://documentation.openiddict.com/configuration/encryption-and-signing-credentials.html identityServerBuilder.AddDeveloperSigningCredential(); + services.AddAuthentication(); + return services; } }