Skip to content

Fix CI/CD pipeline#326

Merged
L1ght1234 merged 10 commits into
devfrom
ci/323/fix-cicd-pipeline
Jun 25, 2025
Merged

Fix CI/CD pipeline#326
L1ght1234 merged 10 commits into
devfrom
ci/323/fix-cicd-pipeline

Conversation

@KobMiles
Copy link
Copy Markdown
Collaborator

@KobMiles KobMiles commented Jun 24, 2025

dev

Code reviewers

Summary of issue

#323

Summary of change

Fix CI/CD pipeline

CHECK LIST

  • СI passed
  • Сode coverage >=95%
  • PR is reviewed manually again (to make sure you have 100% ready code)
  • All reviewers agreed to merge the PR
  • I've checked new feature as logged in and logged out user if needed
  • PR meets all conventions

KobMiles added 10 commits June 24, 2025 18:00
Refactor paths in deploy-webapi-prod.yml to use a new
directory structure. Updated `AZURE_WEBAPP_PACKAGE_PATH`,
`API_IMPORT_SPECIFICATION_PATH`, `API_IMPORT_DLL`, and
`WORKING_DIRECTORY` to reflect the changes from
`Streetcode.WebApi` to `Streetcode/Streetcode.WebApi`,
ensuring consistency with forward slashes.
- Added new environment variables: PUBLISH_DIRECTORY and BUILD_DLL.
- Introduced a job step to generate the Open API Specification Document using Swashbuckle CLI.
- Set working directory to WORKING_DIRECTORY and output path to PUBLISH_DIRECTORY.
- Enhanced swagger tofile command with --startupAssembly and --startupType parameters.
Removed the separate step for generating the Open API Specification Document.
Replaced it with a consolidated step that installs the Swashbuckle CLI
.NET Global Tool and executes the `swagger tofile` command in one go,
specifying the working directory for improved clarity and efficiency.
Modified `deploy-webapi-prod.yml` to enhance the Swashbuckle CLI installation process by adding the tool's path to the environment. Updated the output path for the generated Swagger JSON file to use `${{ env.AZURE_WEBAPP_PACKAGE_PATH }}` and streamlined the installation and generation commands into a single step.
Modified the `deploy-webapi-prod.yml` file to change the method of adding the .NET tools directory to the environment path. Replaced the deprecated `echo "::add-path::$HOME/.dotnet/tools"` with `echo "$HOME/.dotnet/tools" >> $GITHUB_PATH` to align with current GitHub Actions practices.
Renamed the Open API specification generation step to "Generate OpenAPI spec (Windows)" in `deploy-webapi-prod.yml`. Updated the command to handle Windows-specific paths and adjusted the appending of the `GITHUB_PATH` variable accordingly, while keeping the Swashbuckle CLI installation command unchanged.
This commit removes the step in `deploy-webapi-prod.yml` that generated an OpenAPI specification using the Swashbuckle CLI. The step included the installation of the Swashbuckle CLI tool globally and the command to create a Swagger JSON file. Other deployment steps for publishing the application and uploading artifacts remain intact.
This commit removes the step that imports an API into Azure API Management from the `deploy-webapi-prod.yml` file. Additionally, the `WORKING_DIRECTORY` and `PUBLISH_DIRECTORY` environment variables have been deleted, while other variables related to the API import remain unchanged.
Modified paths in `deploy-userservice-prod.yml` to use forward slashes for better cross-platform compatibility. Updated the working directory structure and removed steps for generating the Open API Specification Document and importing the API into Azure API Management, streamlining the deployment process.
Replaced service principal credentials in
`deploy-userservice-prod.yml` and `deploy-webapi-prod.yml`.
The previous credentials (`${{ secrets.apim_streetcode_prod_pl_SPN }}`)
were updated to `${{ secrets.USERSERVICE_SPN }}` and
`${{ secrets.WEBAPI_SPN }}` for user service and web API
deployments, respectively.
@KobMiles KobMiles self-assigned this Jun 24, 2025
@KobMiles KobMiles linked an issue Jun 24, 2025 that may be closed by this pull request
@sonarqubecloud
Copy link
Copy Markdown

@L1ght1234 L1ght1234 merged commit 3c5ecfa into dev Jun 25, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix CI/CD pipeline

3 participants