Skip to content

Commit

Permalink
ci: remove unneeded packages for nri-discovery-kubernetes (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
roobre committed Jul 23, 2021
1 parent 4674403 commit 0d283f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,6 @@ env:
TAG: ${{ github.event.release.tag_name }}

jobs:
snyk:
name: Run security checks via snyk
runs-on: ubuntu-20.04
env:
SNYK_TOKEN: ${{ secrets.COREINT_SNYK_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.OHAI_DOCKER_HUB_ID }}
password: ${{ secrets.OHAI_DOCKER_HUB_PASSWORD }}
- name: Scan code for vulnerabilities
run: make ci/snyk-test

test-nix:
name: Run unit tests on *Nix
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -69,7 +54,7 @@ jobs:
prerelease:
name: Build binary for *Nix/Win, create archives for *Nix/Win, create packages for *Nix, upload all artifacts into GH Release assets
runs-on: ubuntu-20.04
needs: [test-nix, test-windows, snyk]
needs: [test-nix, test-windows]
env:
GPG_MAIL: 'infrastructure-eng@newrelic.com'
GPG_PASSPHRASE: ${{ secrets.OHAI_GPG_PASSPHRASE }}
Expand Down
35 changes: 0 additions & 35 deletions build/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ builds:
- -s -w -X cmd.main.integrationVersion={{.Version}} -X cmd.main.gitCommit={{.Commit}}
goos:
- linux
- freebsd
- darwin
goarch:
- 386
Expand All @@ -25,10 +24,6 @@ builds:
goarch: 386
- goos: darwin
goarch: arm
- goos: freebsd
goarch: 386
- goos: freebsd
goarch: arm

- id: nri-discovery-kubernetes-win
main: ./cmd/discovery
Expand All @@ -42,36 +37,6 @@ builds:
hooks:
pre: build/windows/set_exe_properties.sh {{ .Env.TAG }} "discovery-kubernetes"

nfpms:
- id: nri-discovery-kubernetes-pkg
builds:
- nri-discovery-kubernetes-nix
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
vendor: "New Relic, Inc."
homepage: "https://www.newrelic.com/infrastructure"
maintainer: "New Relic Infrastructure Team <infrastructure-eng@newrelic.com>"
description: "Automatically discovers containers running inside Kubernetes"
license: "https://newrelic.com/terms (also see LICENSE installed with this package)"
# Formats to be generated.
formats:
- deb
- rpm
bindir: "/var/db/newrelic-infra/newrelic-integrations/bin"
contents:
- src: CHANGELOG.md
dst: /usr/share/doc/nri-discovery-kubernetes/CHANGELOG.md
- src: README.md
dst: /usr/share/doc/nri-discovery-kubernetes/README.md
- src: LICENSE
dst: /usr/share/doc/nri-discovery-kubernetes/LICENSE
dependencies:
- "newrelic-infra"
overrides:
rpm:
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
replacements:
amd64: 1.x86_64

archives:
- id: nri-discovery-kubernetes-nix
builds:
Expand Down

0 comments on commit 0d283f7

Please sign in to comment.