-
Notifications
You must be signed in to change notification settings - Fork 14
86 lines (76 loc) · 2.59 KB
/
systems-subscriber-sim-pool.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# THIS FILE IS GENERATED AUTOMATICALLY BY RUNNING gen-workflow.sh
# DON'T CHANGE IT MANUALLY TO AVOID YOUR CHANGES BEING OVERWRITTEN
# USE workflow-template.yaml FOR MAKING CHANGES IN WORKFLOWS
name: build-systems-subscriber-sim-pool
on:
push:
paths:
- "systems/subscriber/sim-pool/**"
- ".github/workflows/systems-subscriber-sim-pool.yaml"
workflow_dispatch:
jobs:
build:
env:
working-directory: systems/subscriber/sim-pool
name: build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build app
uses: ./.github/actions/build-go
with:
registry-name: subscriber/sim-pool
working-directory: ${{ env.working-directory }}
github-bot-token: ${{ secrets.UKAMA_BOT_GITHUB_TOKEN }}
aws-secret-key: ${{ secrets.AWS_REGISTRY_SECRET_ACCESS_KEY }}
aws-access-key: ${{ secrets.AWS_REGISTRY_ACCESS_KEY_ID }}
build-listener: false
sonar-scan:
name: sonar-scan
needs: build
runs-on: ubuntu-latest
env:
working-directory: systems/subscriber/sim-pool
steps:
- uses: actions/checkout@v3
- name: scan
uses: ./.github/actions/sonar-go
with:
working-directory: ${{ env.working-directory }}
github-bot-token: ${{ secrets.UKAMA_BOT_GITHUB_TOKEN }}
sonar-token: ${{ secrets.SONAR_TOKEN }}
project-key: ukama_systems_subscriber_sim-pool
lint:
name: lint
runs-on: ubuntu-latest
env:
working-directory: systems/subscriber/sim-pool
steps:
- uses: actions/checkout@v3
- name: lint
uses: ./.github/actions/lint-go
with:
working-directory: ${{ env.working-directory }}
github-bot-token: ${{ secrets.UKAMA_BOT_GITHUB_TOKEN }}
release:
name: release
needs: [build, lint]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
env:
working-directory: systems/subscriber/sim-pool
steps:
- uses: actions/checkout@v3
- name: Init vars
id: vars_step
uses: ./.github/actions/git-vars
- name: update gitops
uses: denispalnitsky/gitops-release@v9
with:
filename: "releases/subscriber-helmfile.yaml"
key: "simpoolImageTag"
value: ${{ steps.vars_step.outputs.sha-short }}
github-token: ${{ secrets.UKAMA_BOT_GITHUB_TOKEN }}
github-org-and-repo: "ukama/infra-as-code"
github-user-mail: "bot@ukama.com"
github-username: "ukama-bot"