mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-28 00:20:24 +08:00
Merge pull request #180 from meysamhadeli/chore/update-identity-server
chore: Update identity server
This commit is contained in:
commit
7a649acf21
@ -34,15 +34,20 @@ runs:
|
|||||||
username: ${{ inputs.registry-username }}
|
username: ${{ inputs.registry-username }}
|
||||||
password: ${{ inputs.registry-password }}
|
password: ${{ inputs.registry-password }}
|
||||||
|
|
||||||
|
- name: Docker Tag Info
|
||||||
|
shell: bash
|
||||||
|
run:
|
||||||
|
echo "Docker tag version is:" ${{ inputs.tag-name }}
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
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
|
- name: Publish Docker Image
|
||||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.1
|
docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.2
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -45,6 +45,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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
|
- name: Build and Publish Identity to Docker
|
||||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||||
uses: ./.github/actions/docker-build-publish
|
uses: ./.github/actions/docker-build-publish
|
||||||
|
|||||||
@ -43,6 +43,8 @@ public static class IdentityServerExtensions
|
|||||||
//ref: https://documentation.openiddict.com/configuration/encryption-and-signing-credentials.html
|
//ref: https://documentation.openiddict.com/configuration/encryption-and-signing-credentials.html
|
||||||
identityServerBuilder.AddDeveloperSigningCredential();
|
identityServerBuilder.AddDeveloperSigningCredential();
|
||||||
|
|
||||||
|
services.AddAuthentication();
|
||||||
|
|
||||||
return services;
|
return services;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user