-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
38 lines (38 loc) · 1.15 KB
/
.travis.yml
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
dist: focal
git:
depth: false
language: go
go:
- 1.21.x
env:
global:
- PLATFORMS="linux/amd64 linux/arm64"
- ARM64_EXCLUDE="(prowler|zap)" # Regex with the check names to exclude from arm64 build
go_import_path: github.com/adevinta/vulcan-checks
before_deploy:
- _scripts/setup_buildx.sh
- go install "github.com/adevinta/vulcan-check-catalog/cmd/vulcan-check-catalog@${VCC_VERSION:-main}"
- go install github.com/adevinta/[email protected]
deploy:
- provider: script
script: bash release.sh
on:
all_branches: true
- provider: script
script: bash release.sh
on:
tags: true
- provider: script
script: bash release-check-catalog.sh
on:
branch: master
- provider: pages
# This process overwrites all the files in gh-pages with ./pages, so it only works with master.
# If we need to publish more checktypes we would have to refactor this process or migrate to peaceiris/actions-gh-pages@v3
# Or update release-check-catalog.sh to get pages/checktypes from gh-pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
local_dir: ./pages
on:
branch: master