-
-
Notifications
You must be signed in to change notification settings - Fork 166
81 lines (72 loc) · 2.52 KB
/
lunatrace-guides-release.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
# Copyright 2021 by LunaSec (owned by Refinery Labs, Inc)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: LunaTrace Guides Release
on:
push:
branches:
- master
jobs:
checks:
runs-on: ubuntu-latest
environment: master # This is what gives the job access to the secret env vars
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Yarn Install
env:
IS_LUNASEC_CI: true
run: yarn install --immutable --inline-builds
- name: Build Common
run: cd lunatrace/bsl/common && yarn run compile
- name: Build Logger
run: cd lunatrace/bsl/logger && yarn run compile
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# env:
# HASURA_URL: https://lunatrace.lunasec.io/api/service/v1/graphql
# STATIC_SECRET_ACCESS_TOKEN: ${{secrets.LUNATRACE_BACKEND_STATIC_SECRET}}
# with:
# limit-access-to-actor: true
# timeout-minutes: 15
- name: Upsert Guides
env:
HASURA_URL: https://lunatrace.lunasec.io/api/service/v1/graphql
STATIC_SECRET_ACCESS_TOKEN: ${{secrets.LUNATRACE_BACKEND_STATIC_SECRET}}
S3_SBOM_BUCKET: fake
S3_CODE_BUCKET: fake
S3_MANIFEST_BUCKET: fake
PROCESS_WEBHOOK_QUEUE: fake
PROCESS_REPOSITORY_QUEUE: fake
PROCESS_MANIFEST_QUEUE: fake
PROCESS_SBOM_QUEUE: fake
DISABLE_WEBHOOK_QUEUE: true
QUEUE_NAME: fake
GOLANG_QUEUE_NAME: fake
GITHUB_APP_ID: 0
GITHUB_APP_PRIVATE_KEY: fake
working-directory: lunatrace/bsl/backend
run: yarn run guides:update
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
if: always()
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_TITLE: Guides Deployed - ${{ job.status }}
SLACK_COLOR: ${{ job.status }}