Skip to content

Commit

Permalink
Merge pull request #12 from aquasecurity/owenr-add-more-scopes
Browse files Browse the repository at this point in the history
Update build assets
  • Loading branch information
Owen Rumney authored Dec 9, 2021
2 parents 23b50b8 + 0b6a373 commit 7eff730
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 14 deletions.
24 changes: 22 additions & 2 deletions .github/plugin_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,25 @@ platforms:
- selector: # optional
os: linux
arch: amd64
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/PLACEHOLDERVERSION/PLACEHOLDERVERSION.tar.gz
bin: ./aqua
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/PLACEHOLDERVERSION/linux_amd64_PLACEHOLDERVERSION.tar.gz
bin: ./aqua
- selector:
os: linux
arch: arm64
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/PLACEHOLDERVERSION/linux_arm64_PLACEHOLDERVERSION.tar.gz
bin: ./aqua
- selector:
os: darwin
arch: arm64
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/PLACEHOLDERVERSION/darwin_amd64_PLACEHOLDERVERSION.tar.gz
bin: ./aqua
- selector:
os: darwin
arch: arm64
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/PLACEHOLDERVERSION/darwin_arm64_PLACEHOLDERVERSION.tar.gz
bin: ./aqua
- selector:
os: windows
arch: amd64
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/PLACEHOLDERVERSION/windows_amd64_PLACEHOLDERVERSION.zip
bin: aqua.exe
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Run integration tests
env:
AQUA_KEY: ${{ secrets.AQUA_KEY }}
AQUA_SECRET: ${{ secrets.AQUA_SECRET }}
TRIVY_RUN_AS_PLUGIN: aqua
run: make integration-test


- uses: actions/checkout@v2
with:
Expand All @@ -28,6 +23,13 @@ jobs:
go-version: '1.17'
- run: go version

- name: Run integration tests
env:
AQUA_KEY: ${{ secrets.AQUA_KEY }}
AQUA_SECRET: ${{ secrets.AQUA_SECRET }}
TRIVY_RUN_AS_PLUGIN: aqua
run: make integration-test

- name: Release
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
16 changes: 11 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ before:
builds:
- main: ./cmd/aqua
binary: aqua
goos:
- linux
goarch:
- amd64

targets:
- linux_amd64
- linux_arm64
- darwin_amd64
- darwin_arm64
- windows_arm64

changelog:
sort: asc
Expand All @@ -18,7 +21,10 @@ changelog:
- '^test:'

archives:
- name_template: "v{{ .Version }}"
- name_template: "{{ .Os }}_{{ .Arch }}_v{{ .Version }}"
format_overrides:
- goos: windows
format: zip

release:
prerelease: auto
Expand Down
22 changes: 21 additions & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,24 @@ platforms:
os: linux
arch: amd64
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/v0.3.0/v0.3.0.tar.gz
bin: ./aqua
bin: ./aqua
- selector:
os: linux
arch: arm64
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/v0.3.0/v0.3.0.tar.gz
bin: ./aqua
- selector:
os: darwin
arch: arm64
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/v0.3.0/v0.3.0.tar.gz
bin: ./aqua
- selector:
os: darwin
arch: amd64
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/v0.3.0/v0.3.0.tar.gz
bin: ./aqua
- selector:
os: windows
arch: amd64
uri: https://github.com/aquasecurity/trivy-plugin-aqua/releases/download/v0.3.0/v0.3.0.zip
bin: aqua.exe

0 comments on commit 7eff730

Please sign in to comment.