-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(feez/nuget): support github secrets (#107)
- Loading branch information
Showing
2 changed files
with
2 additions
and
24 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 |
---|---|---|
|
@@ -33,20 +33,9 @@ jobs: | |
with: | ||
subject-path: "${{ github.workspace }}/${{ env.RELEASE_PACKAGES }}" | ||
|
||
- name: Prepare feedz.io | ||
uses: hashicorp/[email protected] | ||
with: | ||
url: ${{ secrets.VAULT_ADDR }} | ||
method: approle | ||
roleId: ${{ secrets.VAULT_ROLE_ID }} | ||
secretId: ${{ secrets.VAULT_SECRET_ID }} | ||
secrets: | | ||
secret/apm-team/ci/elastic-observability-feedz.io apiKey | REPO_API_KEY ; | ||
secret/apm-team/ci/elastic-observability-feedz.io url | REPO_API_URL | ||
# Push to feedz.io | ||
- name: publish canary packages to feedz.io | ||
run: dotnet nuget push '${{ env.RELEASE_PACKAGES }}' -k ${REPO_API_KEY} -s ${REPO_API_URL} --skip-duplicate --no-symbols | ||
run: dotnet nuget push '${{ env.RELEASE_PACKAGES }}' -k ${{ secrets.FEEDZ_IO_API_KEY }} -s ${{ secrets.FEEDZ_IO_API_URL }} --skip-duplicate --no-symbols | ||
|
||
# Push to GHPR for advertising purposes on the github landing page. | ||
# Sadly this still requires authentication to use as a nuget package repository | ||
|
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 |
---|---|---|
|
@@ -39,20 +39,9 @@ jobs: | |
with: | ||
subject-path: "${{ github.workspace }}/${{ env.RELEASE_PACKAGES }}" | ||
|
||
- name: Prepare Nuget | ||
uses: hashicorp/[email protected] | ||
with: | ||
url: ${{ secrets.VAULT_ADDR }} | ||
method: approle | ||
roleId: ${{ secrets.VAULT_ROLE_ID }} | ||
secretId: ${{ secrets.VAULT_SECRET_ID }} | ||
secrets: | | ||
secret/apm-team/ci/elastic-observability-nuget apiKey | REPO_API_KEY ; | ||
secret/apm-team/ci/elastic-observability-nuget url | REPO_API_URL | ||
- name: Release to Nuget (only for release events) | ||
if: ${{ github.event_name == 'release' }} | ||
run: dotnet nuget push '${{ env.RELEASE_PACKAGES }}' -k ${{secrets.NUGET_REPO_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols | ||
run: dotnet nuget push '${{ env.RELEASE_PACKAGES }}' -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols | ||
|
||
- if: ${{ success() && github.event_name == 'release' }} | ||
uses: elastic/oblt-actions/slack/[email protected] | ||
|