Steps:
-
Create a Yandex function.
-
Add CI/CD variable SA_YC_PRIVATE_KEY, example:
{
"id": "****************",
"service_account_id": "****************",
"created_at": "2024-05-06T13:00:46.589768914Z",
"key_algorithm": "RSA_2048",
"public_key": "****************",
"private_key": "********************"
}
-
Fill in the variables in the .gitlab-ci.yml file.
-
Done.