Skip to content

Add redis cluster.master to shards and shards replca count changes (… #3

Add redis cluster.master to shards and shards replca count changes (…

Add redis cluster.master to shards and shards replca count changes (… #3

Workflow file for this run

name: Release
on:
push:
tags:
- "*.*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
label-detector:
name: Runner Label
runs-on: label-detector
outputs:
runs-on: ${{ steps.detector.outputs.label }}
steps:
- name: Detect Label
id: detector
run: |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs
echo "label=$(curl -fsSL https://this-is-nats.appscode.ninja/runs-on/${{ github.repository_owner }}?visibility=${{ github.repository_visibility }})" >> $GITHUB_OUTPUT
build:
name: Build
needs: label-detector
runs-on: "${{ needs.label-detector.outputs.runs-on }}"
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v1
with:
go-version: '1.21'
id: go
- uses: actions/checkout@v1
- name: Print version info
id: semver
run: |
make version
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build
env:
APPSCODE_ENV: prod
run: |
make release COMPRESS=yes
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bin/redis-node-finder-darwin-amd64.tar.gz
bin/redis-node-finder-darwin-arm64.tar.gz
bin/redis-node-finder-linux-amd64.tar.gz
bin/redis-node-finder-linux-arm.tar.gz
bin/redis-node-finder-linux-arm64.tar.gz
bin/redis-node-finder-windows-amd64.zip
bin/redis-node-finder-checksums.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}