-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI | RPM action | bump version and share files between re-usable work…
…flows Signed-off-by: Romy <35330373+romayalon@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
30 additions
and
23 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
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 |
---|---|---|
@@ -1,23 +1,30 @@ | ||
name: Upload RPM to AWS | ||
on: | ||
workflow_call: | ||
inputs: | ||
rpm_full_path: | ||
type: string | ||
description: 'RPM path to be uploaded to AWS bucket' | ||
name: Upload RPM to AWS | ||
on: | ||
workflow_call: | ||
inputs: | ||
rpm_full_path: | ||
type: string | ||
description: 'RPM path to be uploaded to AWS bucket' | ||
|
||
jobs: | ||
upload-rpm-to-aws: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Setup AWS CLI | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.NEWAWSPROJKEY }} | ||
aws-secret-access-key: ${{ secrets.NEWAWSPROJSECRET }} | ||
aws-region: us-east-1 | ||
|
||
- name: Copy RPM to S3 bucket | ||
run: | | ||
aws s3 cp ${{ inputs.rpm_full_path }} s3://noobaa-core-rpms/ | ||
jobs: | ||
upload-rpm-to-aws: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ inputs.rpm_full_path }} | ||
path: ${{ inputs.rpm_full_path }} | ||
|
||
- name: Setup AWS CLI | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id: ${{ secrets.NEWAWSPROJKEY }} | ||
aws-secret-access-key: ${{ secrets.NEWAWSPROJSECRET }} | ||
aws-region: us-east-1 | ||
|
||
- name: Copy RPM to S3 bucket | ||
run: | | ||
aws s3 cp ${{ inputs.rpm_full_path }} s3://noobaa-core-rpms/ |