From 8a83939abd9dd7e685c4eb19ccb008a91cee6d4b Mon Sep 17 00:00:00 2001 From: msm1984 Date: Tue, 27 Aug 2024 14:13:31 +0330 Subject: [PATCH 1/2] fix: versioning for images --- .github/workflows/CD_Backend.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CD_Backend.yml b/.github/workflows/CD_Backend.yml index 39325da..d7a0660 100644 --- a/.github/workflows/CD_Backend.yml +++ b/.github/workflows/CD_Backend.yml @@ -36,7 +36,7 @@ jobs: context: . file: backend.Dockerfile push: true - tags: mohammadsadeghmontazeri/starback:latest + tags: mohammadsadeghmontazeri/starback:${{ steps.tag_version.outputs.new_tag }} - name: build and push docker migrate to registry uses: docker/build-push-action@v5 @@ -44,7 +44,7 @@ jobs: context: . file: migrate.Dockerfile push: true - tags: mohammadsadeghmontazeri/migratestar:latest + tags: mohammadsadeghmontazeri/migratestar:${{ steps.tag_version.outputs.new_tag }} - name: Create Release id: create_release From 2880f1f85ba745f788e91ca5f7c624cf431dbe3e Mon Sep 17 00:00:00 2001 From: msm1984 Date: Tue, 27 Aug 2024 16:21:44 +0330 Subject: [PATCH 2/2] feat: front can request to backend --- src/Web/Startup/ServiceExtensions.Cors.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Web/Startup/ServiceExtensions.Cors.cs b/src/Web/Startup/ServiceExtensions.Cors.cs index 57bf4d4..bfa7066 100644 --- a/src/Web/Startup/ServiceExtensions.Cors.cs +++ b/src/Web/Startup/ServiceExtensions.Cors.cs @@ -10,7 +10,10 @@ public static void AddCorsPolicy(this IServiceCollection services) { options.AddPolicy("AllowSpecificOrigins", corsPolicyBuilder => { - corsPolicyBuilder.WithOrigins("http://localhost:4200") + corsPolicyBuilder.WithOrigins( + "http://localhost:4200", + "http://external.abriment.com:30081" + ) .AllowAnyHeader() .AllowAnyMethod() .AllowCredentials();