Skip to content

Commit

Permalink
CI | RPM action | bump version and share files between re-usable work…
Browse files Browse the repository at this point in the history
…flows

Signed-off-by: Romy <35330373+romayalon@users.noreply.github.com>
  • Loading branch information
romayalon committed May 22, 2024
1 parent aa6593b commit bcf1479
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rpm-build-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
echo "rpm_full_path=${RPM_FULL_PATH}" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4
with:
name: noobaa_rpm
name: ${{ steps.finalize_full_rpm_path.outputs.rpm_full_path }}
path: ${{ steps.finalize_full_rpm_path.outputs.rpm_full_path }}
49 changes: 28 additions & 21 deletions .github/workflows/upload-rpm-to-aws.yaml
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/

0 comments on commit bcf1479

Please sign in to comment.