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

Moving latest check, into config #305

Merged
merged 6 commits into from
Jan 11, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
paths-ignore:
- 'docs/**'
- '**/*.md'
- '.github/worfklows/release.yml'
- '.github/workflows/release.yml'
branches:
- master
- '[0-9].[0-9]'
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ jobs:
virtualenvs-in-project: true
virtualenvs-create: true
installer-parallel: true

- name: get package version
id: get_version
run: |
poetry install
source .venv/bin/activate
realversion=`invoke version -p redis-stack-server -d true`
echo "VERSION=$realversion" >>$GITHUB_OUTPUT

- uses: s3-actions/s3cmd@v1.2.0
with:
provider: aws
Expand Down Expand Up @@ -87,15 +88,23 @@ jobs:
redisfab/redis-stack-server:${{steps.get_version.outputs.VERSION}}-arm64
docker manifest push redis/redis-stack-server:${{ steps.get_version.outputs.VERSION}}

- name: determine if LATEST for docker
id: latestcheck
run: |
grep "islatest: yes" config.yml
if [ $? -eq 0 ]; then
echo "ISLATEST=YES" >>$GITHUB_OUTPUT
fi

- name: publish redis-stack docker as latest
if: ${{ env.ISLATEST == 'YES' }}
if: ${{steps.latestcheck.outputs.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' }}
if: ${{steps.latestcheck.outputs.ISLATEST == 'YES'}}
run: |
docker manifest create redis/redis-stack-server:latest \
redisfab/redis-stack-server:${{steps.get_version.outputs.VERSION}}-x86_64 \
Expand Down
3 changes: 3 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---

islatest: yes

# module versions
versions:
rejson: 2.4.3
Expand Down