Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI | RPM action | Bump versions and share files between re-usable workflows #8066

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/