mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-11 02:20:20 +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 }}
|
||||
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
|
||||
|
||||
|
||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user