This repo will have the github workflow needed to plan, provision, and promote a Spring Cloud Stream application using Event Portal, Event Broker, and AsyncaPI
- This workflow assumes an asyncapi.yml file in the root of the directory.
- Make sure github actions is enabled in your repo
- Settings --> Actions --> General --> Allow all actions and reusable workflows
- Settings --> Actions --> General --> Workflow permissions --> Enable read/write
- Confiure the secrets in your repo as per the workflow files
- Edit this readme to match your project description
Tip
You need to have a GitHub account for this portion. If you don’t have one, you can get one free.
- Make sure you are logged into GitHub and go to the Import Existing Repository page.
- Use
https://github.com/SolaceLabs/ep-scs-workflowfor the URL, list yourself as the owner, and name the new repositorycustomer360. Click on Begin Import.
- Wait for the import to complete, usually around 3 minutes. Then click on the link to open the repository.
Caution
Cloning through GitHub occasionally takes a bit of time. After 3 minutes, try refreshing the page to see if it's done.
- In the top menu of the repository, select Settings.

- In the left-hand column, select Actions (1), then General (2).

- Scroll to the bottom of the page, and click on the radio button next to Read and write permissions (1). Then click on Save (2).

- Again in the left-hand column, scroll down, expand Secrets and variables (1), then click on Actions (2).

- In the main panel, click on New Repository Secret.

- Name the secret
SOLACE_CLOUD_TOKEN. The value of the secret should be the token you created for Postman when initially populating your account.
- Unzip the Spring Cloud Stream source code you downloaded from studio.asyncapi.com on your hard drive.
- In the root directory, move the
asyncapi.ymlfile to the template directory.
- Navigate to the template directory. It should look like this:

- In your browser, go to the new repository, click on the plus sign (1), then on Upload files (2).

- Select all four files/subdirectories in the template directory, then click on OK.
Caution
Do not upload the template directory. You need to upload the four files/subdirectories.
- In the resulting window, change the radio button to Create a new branch for this commit. Then click on Propose changes.

- In the next screen, click on Create pull request.

- The GitHub Actions kick off. When they are finished, there should be a list of changes that will occur should the pull request be approved.

- Scroll down to the bottom of the pull request and click on Merge pull request. Then click on Confirm merge.

- Using the management console of your cloud broker, confirm that the CICD process created the same queues, subscriptions, ACLs as manual promotion.