Skip to content

fix: added support of opensource redis_exporter support for password update #126

fix: added support of opensource redis_exporter support for password update

fix: added support of opensource redis_exporter support for password update #126

Workflow file for this run

name: dev
on: [pull_request]
jobs:
test:
name: Test with Coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.22'
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies
run: |
go mod download
- name: Run Unit tests
run: |
make test
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: goveralls -coverprofile=coverage.txt -service=github
- name: Read version from file
id: get_version
run: echo "::set-output name=VERSION::$(cat version)"
- name: Get branch name
id: get_branch
run: echo "::set-output name=BRANCH_NAME::${GITHUB_REF#refs/heads/}"
- name: Get short commit SHA
id: get_commit
run: echo "::set-output name=COMMIT_SHA::${GITHUB_SHA::7}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Docker Setup Buildx
id: buildx
uses: docker/[email protected]
- name: Docker Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/redis-operator:${{ steps.get_version.outputs.VERSION }}-${{ steps.get_branch.outputs.BRANCH_NAME }}-${{ steps.get_commit.outputs.COMMIT_SHA }}
platforms: linux/amd64,linux/arm64