Report development snapshot #7022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Report development snapshot | |
| # On a normal setup the backend and frontend built in the two build jobs would | |
| # deploy the two artifacts to a server, and we would have set up reporting | |
| # of the environment to kosli. In this example we do not have a server so | |
| # we just simulate that we have deployed to development | |
| on: | |
| schedule: | |
| - cron: '55 * * * *' # Runs 5 minutes before the start of every hour | |
| workflow_dispatch: | |
| env: | |
| # kosli commands picks up org, env, trail and api-token from these environment variables | |
| KOSLI_ORG: "${{ vars.KOSLI_ORG }}" | |
| KOSLI_ENV: "${{ vars.KOSLI_ENV_DEV }}" #jira-integration-example-dev | |
| KOSLI_API_TOKEN: "${{ secrets.KOSLI_PUBLIC_API_TOKEN }}" | |
| KOSLI_CLI_VERSION: "${{ vars.KOSLI_CLI_VERSION }}" | |
| jobs: | |
| report-snapshot: | |
| name: Report development snapshot | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Kosli cli | |
| uses: kosli-dev/setup-cli-action@v2 | |
| with: | |
| version: | |
| ${{ vars.KOSLI_CLI_VERSION }} | |
| - name: Report snapshot | |
| run: | | |
| mkdir -p running | |
| cp -r apps/frontend running/ | |
| cp -r apps/backend running/ | |
| kosli snapshot paths ${{ env.KOSLI_ENV }} \ | |
| --paths-file server-paths-file.yml |