GeekZoneHQ / web

Software to power the Geek.Zone website and apps
http://geek.zone/web
GNU General Public License v3.0
19 stars 29 forks source link

Add branch name filter in cicd pipeline, update Python version, switch from psycopg2-binary to psycopg2, change executor in cicd pipeline #675

Closed giulio-giunta closed 1 year ago

giulio-giunta commented 1 year ago

Description

Related Issue

resolves #674 resolves #681

Motivation and Context

The change is needed because at the moment any PR started from a branch named doc-* will not pass the cicd check. This is because the current cicd configuration makes the pipeline not run at all in such a scenario, thus the required cicd check will fail. Updating the Python version is needed to pass the Snyk checks, while all the modifications in the Python files are needed to pass the tests. Two packages were needed to switch from psycopg2-binary to psycopg2, which is not meant to be used in production. The executor configured for the cicd pipeline caused Snyk to fail the image.

How Has This Been Tested?

The logic that prevents the cicd pipeline to build a new image when only documentation is updated was tested in this cicd pipeline: https://app.circleci.com/pipelines/github/GeekZoneHQ/web/1972/workflows/58936093-d33c-4774-a133-cc0a0684a05a All the other changes were tested in the cicd pipeline, as shown in the passed check.

Types of changes

Checklist:

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication