Skip to content

Commit 9619d16

Browse files
committed
OPS-3 Added reporting from development
1 parent e3050f2 commit 9619d16

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Report development snapshot
2+
3+
# On a normal setup the backend and frontend built in the two build jobs would
4+
# deploy the two artifacts to a server, and we would have set up reporting
5+
# of the environment to kosli. In this example we do not have a server so
6+
# we just simulate that we deploy to development
7+
8+
on:
9+
schedule:
10+
- cron: '*/5 * * * *' # Runs every 5 minutes (smallest possible)
11+
12+
env:
13+
# kosli commands picks up org, env, trail and api-token from these environment variables
14+
KOSLI_ORG: kosli-public
15+
KOSLI_ENV: jira-integration-example-dev
16+
KOSLI_API_TOKEN: "${{ secrets.KOSLI_PUBLIC_API_TOKEN }}"
17+
KOSLI_CLI_VERSION: "2.11.8"
18+
19+
jobs:
20+
report-snapshot:
21+
name: Report development snapshot
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Setup Kosli cli
27+
uses: kosli-dev/setup-cli-action@v2
28+
with:
29+
version:
30+
${{ env.KOSLI_CLI_VERSION }}
31+
32+
- name: Report snapshot
33+
shell: bash
34+
run: |
35+
kosli snapshot paths ${{ env.KOSLI_ENV }} \
36+
--paths-file server-paths-file.yml

server-paths-file.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 1
2+
artifacts:
3+
backend:
4+
path: apps/backend
5+
frontend:
6+
path: apps/frontend

0 commit comments

Comments
 (0)