Skip to content

feat: add redis-role label to redis replication (#925) #1

feat: add redis-role label to redis replication (#925)

feat: add redis-role label to redis replication (#925) #1

Workflow file for this run

name: Publish Image to GitHub Container Registry
on:
push:
tags:
- 'v*'
env:
REGISTRY: ghcr.io
REPOSITORY: ${{ github.repository }}
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up docker buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Env
run: |
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build and Push Operator image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ env.TAG }}
${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest
platforms: linux/amd64,linux/arm64