-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d3264a
commit c748ec6
Showing
5 changed files
with
75 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,17 @@ jobs: | |
needs: [ test-nix, test-windows ] | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
|
@@ -65,7 +75,19 @@ jobs: | |
run: | | ||
echo "TAG_SUFFIX=-pre" >> $GITHUB_ENV | ||
- name: do the release | ||
run: make ci/prerelease | ||
# The release target is not being executed inside a container (ci/release) since the target | ||
# compiles docker images (from goreleaser) and that cannot be done inside a container. | ||
run: make release | ||
env: | ||
GENERATE_PACKAGES: true | ||
UPLOAD_PACKAGES: ${{ github.event.release.prerelease }} | ||
GPG_MAIL: '[email protected]' | ||
# The upload script expects this to authenticate. | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: release fips | ||
# The release target is not being executed inside a container (ci/release) since the target | ||
# compiles docker images (from goreleaser) and that cannot be done inside a container. | ||
run: make ci/prerelease-fips | ||
env: | ||
GENERATE_PACKAGES: true | ||
UPLOAD_PACKAGES: ${{ github.event.release.prerelease }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
version: 2 | ||
project_name: nri-prometheus | ||
builds: | ||
- id: nri-prometheus-nix-fips | ||
main: ./cmd/nri-prometheus/ | ||
binary: nri-prometheus | ||
ldflags: | ||
- -s -w -X github.com/newrelic/nri-prometheus/internal/integration.Version={{.Version}} #-X main.gitCommit={{.Commit}} -X main.buildDate={{.Date}} | ||
env: | ||
- CGO_ENABLED=1 | ||
- GOEXPERIMENT=boringcrypto | ||
- >- | ||
{{- if eq .Arch "arm64" -}} | ||
CC=aarch64-linux-gnu-gcc | ||
{{- end }} | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
tags: | ||
- fips | ||
|
||
archives: | ||
- id: nri-prometheus-nix-fips | ||
builds: | ||
- nri-prometheus-nix-fips | ||
name_template: "{{ .ProjectName }}-fips_{{ .Os }}_{{ .Version }}_{{ .Arch }}_dirty" | ||
format: tar.gz | ||
|
||
release: | ||
disable: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters