-
Notifications
You must be signed in to change notification settings - Fork 125
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
b5cdfc3
commit 6d8d36b
Showing
4 changed files
with
139 additions
and
11 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 |
---|---|---|
|
@@ -12,6 +12,10 @@ on: | |
dest_prefix: | ||
description: 'Repo prefix' | ||
required: true | ||
BUILD_MODE: | ||
description: 'Enable Normal, FIPS or ALL' | ||
required: false | ||
default: '' # "all" "FIPS": | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -47,7 +51,7 @@ jobs: | |
ref: ${{ env.BRANCH }} | ||
|
||
- name: "Tag this commit" # required for Goreleaser | ||
run: git tag ${{ env.FAKE_TAG }} | ||
run: git tag | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
|
@@ -56,10 +60,17 @@ jobs: | |
password: ${{ env.DOCKER_HUB_PASSWORD }} | ||
|
||
- name: Preparing all linux packages | ||
if: ${{ inputs.BUILD_MODE == 'ALL' || inputs.BUILD_MODE == '' }} | ||
run: make ci/prerelease/linux | ||
env: | ||
TAG: ${{ env.FAKE_TAG }} | ||
|
||
- name: Preparing all linux packages | ||
if: ${{ inputs.BUILD_MODE == 'ALL' || inputs.BUILD_MODE == 'FIPS' }} | ||
run: make ci/prerelease/linux-fips | ||
env: | ||
TAG: ${{ env.FAKE_TAG }} | ||
|
||
- name: Generate checksum files | ||
uses: ./.github/actions/generate-checksums | ||
with: | ||
|
@@ -68,6 +79,7 @@ jobs: | |
run_sudo: true | ||
|
||
- name: Publish deb to S3 action | ||
if: ${{ inputs.BUILD_MODE == 'ALL' || inputs.BUILD_MODE == '' }} | ||
uses: newrelic/[email protected] | ||
with: | ||
tag: ${{env.FAKE_TAG}} | ||
|
@@ -92,6 +104,33 @@ jobs: | |
local_packages_path: "/srv/dist/" | ||
apt_skip_mirror: true | ||
|
||
|
||
- name: Publish deb to S3 action | ||
if: ${{ inputs.BUILD_MODE == 'ALL' || inputs.BUILD_MODE == 'FIPS' }} | ||
uses: newrelic/[email protected] | ||
with: | ||
tag: ${{env.FAKE_TAG}} | ||
app_name: "newrelic-infra" | ||
repo_name: "newrelic/infrastructure-agent" | ||
schema: "custom" | ||
schema_url: "https://raw.githubusercontent.com/newrelic/infrastructure-agent/${{ env.BRANCH }}/build/upload-schema-linux-deb-fips.yml" | ||
aws_access_key_id: ${{ env.AWS_ACCESS_KEY_ID }} | ||
aws_secret_access_key: ${{ env.AWS_SECRET_ACCESS_KEY }} | ||
aws_s3_bucket_name: ${{ env.AWS_S3_BUCKET_NAME }} | ||
aws_s3_lock_bucket_name: ${{ env.AWS_S3_LOCK_BUCKET_NAME }} | ||
access_point_host: ${{ env.ACCESS_POINT_HOST }} | ||
run_id: ${{ env.RUN_ID }} | ||
aws_region: ${{ env.AWS_REGION }} | ||
aws_role_session_name: ${{ env.AWS_ROLE_SESSION_NAME }} | ||
aws_role_arn: ${{ env.AWS_ROLE_ARN }} | ||
# used for signing package stuff | ||
gpg_passphrase: ${{ env.GPG_PASSPHRASE }} | ||
gpg_private_key_base64: ${{ env.GPG_PRIVATE_KEY_BASE64 }} | ||
disable_lock: ${{ env.DISABLE_LOCK }} | ||
dest_prefix: ${{ env.DEST_PREFIX }} | ||
local_packages_path: "/srv/dist/" | ||
apt_skip_mirror: true | ||
|
||
- name: Publish rpm to S3 action | ||
uses: newrelic/[email protected] | ||
with: | ||
|
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