-
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
738b9a2
commit e6b10e4
Showing
4 changed files
with
19 additions
and
25 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 |
---|---|---|
|
@@ -6,12 +6,12 @@ on: | |
- prereleased | ||
- released | ||
tags: | ||
- 'v*' | ||
- "v*" | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
INTEGRATION: "prometheus" | ||
ORIGINAL_REPO_NAME: 'newrelic/nri-prometheus' | ||
ORIGINAL_REPO_NAME: "newrelic/nri-prometheus" | ||
REPO_FULL_NAME: ${{ github.event.repository.full_name }} | ||
TAG: ${{ github.event.release.tag_name }} | ||
S3_PATH: s3://nr-downloads-main/infrastructure_agent | ||
|
@@ -42,7 +42,7 @@ jobs: | |
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'src/github.com/${{ env.ORIGINAL_REPO_NAME }}/go.mod' | ||
go-version-file: "src/github.com/${{ env.ORIGINAL_REPO_NAME }}/go.mod" | ||
- name: Running unit tests | ||
shell: pwsh | ||
run: | | ||
|
@@ -51,7 +51,7 @@ jobs: | |
integration-release: | ||
name: Use goreleaser for releasing | ||
runs-on: ubuntu-latest | ||
needs: [ test-nix, test-windows ] | ||
needs: [test-nix, test-windows] | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -60,7 +60,7 @@ jobs: | |
- name: setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
go-version-file: "go.mod" | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
|
@@ -80,17 +80,14 @@ jobs: | |
run: make release | ||
env: | ||
GENERATE_PACKAGES: true | ||
UPLOAD_PACKAGES: ${{ github.event.release.prerelease }} | ||
PRERELEASE: ${{ github.event.release.prerelease }} | ||
- name: release fips | ||
# FIPS packages need to be built in the fips container | ||
# TODO: It should be refactored when we change the way docker images are being built | ||
run: make ci/prerelease-fips | ||
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 }} | ||
PRERELEASE: ${{ github.event.release.prerelease }} | ||
|
||
- if: ${{ github.event.release.prerelease }} | ||
name: Update title for successful pre-release | ||
|
@@ -99,7 +96,6 @@ jobs: | |
run: | | ||
gh release edit ${{ github.event.release.tag_name }} --title "${{ github.event.release.tag_name }}" | ||
notify-failure: | ||
if: ${{ always() && failure() }} | ||
needs: [test-nix, test-windows, integration-release] | ||
|
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