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

Adding the packages bucket as another release destination #145

Merged
merged 1 commit into from
Jun 28, 2022
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
Empty file removed .github/workflows/.donotremove
Empty file.
21 changes: 16 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ env:
# Path to the S3 bucket containing our pre-build packages
s3root: s3://redismodules/redis-stack

# Name of the s3 bucket within the account, used to publish our feeds
# eg: redismodules
s3publicreponame: packages.redis.io
# Distination bucket for releases
s3publicreponame: s3://packages.redis.io/redis-stack/

jobs:

Expand All @@ -40,7 +39,7 @@ jobs:
source .venv/bin/activate
realversion=`invoke version -p redis-stack-server -d true`
echo "::set-output name=VERSION::$realversion"
- uses: s3-actions/s3cmd@v1.1
- uses: s3-actions/s3cmd@v1.2.0
with:
provider: aws
region: us-east-1
Expand All @@ -50,9 +49,21 @@ jobs:
run: |
mkdir s3uploads/
s3cmd get ${{env.s3root}}/snapshots/*${{ steps.get_version.outputs.VERSION }}* s3uploads/
- name: publish all files to s3 # maintain a copy with redis-stack itself so that rpms (etc) can be signed
run: |
s3cmd put -P s3uploads/* ${{ env.s3publicreponame }}/

# copy to the distribution bucket
- uses: s3-actions/s3cmd@v1.2.0
with:
provider: aws
region: us-east-2
access_key: ${{ secrets.PUBLICREPO_AWS_ACCESS_KEY_ID }}
secret_key: ${{ secrets.PUBLICREPO_AWS_SECRET_ACCESS_KEY }}
- name: publish all files to s3
run: |
s3cmd put -P s3uploads/* ${{ env.s3root }}/
s3cmd put -P s3uploads/* ${{ env.s3publicreponame }}/

- name: Log in to DockerHub
uses: docker/login-action@v1
with:
Expand Down