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

Making the latest docker, only when the variable is set #221

Merged
merged 1 commit into from
Oct 6, 2022
Merged
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
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ env:
# Distination bucket for releases
s3publicreponame: s3://packages.redis.io/redis-stack

# set to YES (in caps) so that in the specified branch, the release will mark as latest
ISLATEST: no

jobs:

promote_releases:
Expand Down Expand Up @@ -70,6 +73,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: publish redis-stack docker
run: |
docker manifest create redis/redis-stack:${{steps.get_version.outputs.VERSION}} \
Expand All @@ -82,3 +86,18 @@ jobs:
redisfab/redis-stack-server:${{steps.get_version.outputs.VERSION}}-x86_64 \
redisfab/redis-stack-server:${{steps.get_version.outputs.VERSION}}-arm64
docker manifest push redis/redis-stack-server:${{ steps.get_version.outputs.VERSION}}

- name: publish redis-stack docker
if: ${{ env.islatest == 'YES' }}
run: |
docker manifest create redis/redis-stack:latest \
redisfab/redis-stack:${{steps.get_version.outputs.VERSION}}-x86_64 \
redisfab/redis-stack:${{steps.get_version.outputs.VERSION}}-arm64
docker manifest push redis/redis-stack:latest
- name: publish redis-stack-server docker
if: ${{ env.islatest == 'YES' }}
run: |
docker manifest create redis/redis-stack-server:latest \
redisfab/redis-stack-server:${{steps.get_version.outputs.VERSION}}-x86_64 \
redisfab/redis-stack-server:${{steps.get_version.outputs.VERSION}}-arm64
docker manifest push redis/redis-stack-server:latest