This is a .github "clone", in order to test and use github workflows. It should be removed and replaced by .github repository (currently not reusable because of privacy).
This repository allows you to use different github workflows, in order for you to not copy paste .yaml files anymore for the CI/CD repository.
Workflows are located in the .github/workflows folder.
For now, there are three workflows :
- deploy grpc, in order to deploy your grpc service.
- deploy job, in order to deploy a specific job on Dataflow.
- publish protobuf, in order to publish a new protobuf contract.
We will use the identities repository in order to demonstrate the following examples.
Deploy grpc
The workflow is located here.
Input | Description | Type | Example |
---|---|---|---|
module_name | Name of the module | String | identities |
service_name | Name of the service | String | config-grpc, for deploy-config-grpc |
deploy_on_gateway | To set if a docker image has to be pushed on the gateway (optional) | Boolean | true, for deploy-grpc in items |
Secret | Required |
---|---|
GCP_PUBLISHER_SERVICE_ACCOUNT_KEY | ✅ |
GH_PACKAGES_READ_ACCESS_TOKEN | ✅ |
GH_DEPLOYMENT_CREATION_ACCESS_TOKEN | ✅ |
Deploy job
The workflow is located here.
Input | Description | Type | Example |
---|---|---|---|
module_name | Name of the module | String | identities |
job_name | Name of the job | String | user-merges-router, for deploy-jobs-user-merges-router |
Secret | Required |
---|---|
GCP_PUBLISHER_SERVICE_ACCOUNT_KEY | ✅ |
GH_PACKAGES_READ_ACCESS_TOKEN | ✅ |
GH_DEPLOYMENT_CREATION_ACCESS_TOKEN | ✅ |
ARTIFACTORY_PASSWORD | ❌ |
Publish protobuf
The workflow is located here.
Input | Description | Type | Example |
---|---|---|---|
module_name | Name of the module | String | identities |
Secret | Required |
---|---|
GCP_PUBLISHER_SERVICE_ACCOUNT_KEY | ✅ |
GITHUB_TOKEN | ✅ |
Search workflows
Publish grpc
The workflow is located here.
Input | Description | Type | Example |
---|---|---|---|
service_name | Name of the service | String | serving-es-grpc, for search-serving-es-grpc |
Secret | Required |
---|---|
ARTIFACTORY_USER | ✅ |
ARTIFACTORY_PASSWORD | ✅ |
GCP_PUBLISHER_SERVICE_ACCOUNT_KEY | ✅ |
GH_PACKAGES_ATTRAQT_READ_ACCESS_TOKEN | ✅ |
GH_DEPLOYMENT_CREATION_ACCESS_TOKEN | ✅ |
Publish job
The workflow is located here.
Input | Description | Type | Example |
---|---|---|---|
job_name | Name of the job | String | es-indexer, for search-jobs-es-indexer |
java_version | Java version | String, '8' or '11' | 8, for search-jobs-es-indexer |
fetch_environment | To set if a job has to fetch the environment (optional) | Boolean | true, for search-jobs-es-indexer for example |
Secret | Required |
---|---|
ARTIFACTORY_USER | ✅ |
ARTIFACTORY_PASSWORD | ✅ |
GCP_PUBLISHER_SERVICE_ACCOUNT_KEY | ✅ |
GH_PACKAGES_ATTRAQT_READ_ACCESS_TOKEN | ✅ |