|
1 | | -# github-shared-workflows |
| 1 | +<h1 align="center">github-shared-workflows</h1> |
| 2 | + |
| 3 | +## SST Workflow |
| 4 | + |
| 5 | +This workflow is used to deploy serverless stack (SST) application on AWS environment. Workflows have been added in `.github/workflows/sst_workflow.yml`. |
| 6 | + |
| 7 | +Below workflow can be used to deploy SST in preview environment when pull request generated and it destroys the preview environment when pull request closed, merged and labeled as destroy, similarly staging and production is deployed using there defined branches. |
| 8 | + |
| 9 | +```yaml |
| 10 | +name: SST Workflow |
| 11 | + |
| 12 | +on: |
| 13 | + pull_request: |
| 14 | + types: [closed, merged, labeled] |
| 15 | + workflow_dispatch: |
| 16 | +jobs: |
| 17 | + preview: |
| 18 | + uses: clouddrove/github-shared-workflows/.github/workflows/sst_workflow.yml@master |
| 19 | + with: |
| 20 | + app-env: # preview |
| 21 | + working-directory: # specify your working folder from repo |
| 22 | + secrets: |
| 23 | + aws-access-key-id: # AWS Access Key ID for preview |
| 24 | + aws-secret-access-key: # AWS Secret Access Key for preview |
| 25 | + |
| 26 | + staging: |
| 27 | + if: ${{ github.base_ref == 'stage' }} |
| 28 | + uses: clouddrove/github-shared-workflows/.github/workflows/sst_workflow.yml@master |
| 29 | + with: |
| 30 | + app-env: # stage |
| 31 | + working-directory: # specify your working folder from repo |
| 32 | + secrets: |
| 33 | + aws-access-key-id: # AWS Access Key ID for stage |
| 34 | + aws-secret-access-key: # AWS Secret Access Key for stage |
| 35 | + |
| 36 | + production: |
| 37 | + if: ${{ github.base_ref == 'master' }} |
| 38 | + uses: clouddrove/github-shared-workflows/.github/workflows/sst_workflow.yml@master |
| 39 | + with: |
| 40 | + app-env: # prod |
| 41 | + working-directory: # specify your working folder from repo |
| 42 | + secrets: |
| 43 | + aws-access-key-id: # AWS Access Key ID for prod |
| 44 | + aws-secret-access-key: # AWS Secret Access Key for prod |
| 45 | +``` |
| 46 | +## Feedback |
| 47 | +If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-azure-aks/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]). |
| 48 | +
|
| 49 | +If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-azure-aks)! |
| 50 | +
|
| 51 | +## About us |
| 52 | +
|
| 53 | +At [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering. |
| 54 | +
|
| 55 | +<p align="center">We are <b> The Cloud Experts!</b></p> |
| 56 | +<hr /> |
| 57 | +<p align="center">We ❤️ <a href="https://github.com/clouddrove">Open Source</a> and you can check out <a href="https://github.com/clouddrove">our other modules</a> to get help with your new Cloud ideas.</p> |
| 58 | +
|
| 59 | + [website]: https://clouddrove.com |
| 60 | + [github]: https://github.com/clouddrove |
| 61 | + [linkedin]: https://cpco.io/linkedin |
| 62 | + [twitter]: https://twitter.com/clouddrove/ |
| 63 | + [email]: https://clouddrove.com/contact-us.html |
| 64 | + [terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language= |
0 commit comments