Skip to content

Add cliclkhouse backup #36

Add cliclkhouse backup

Add cliclkhouse backup #36

Workflow file for this run

name: 'Deploy'
on:
push:
branches:
- dev
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: 'Set image tag'
id: tag
run: |
IMAGE_TAG="0.0.0"
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
REF=${{ github.ref }};
TAG_FULL=${REF#refs/*/};
IMAGE_TAG=${TAG_FULL//\//_};
fi
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
echo "image_tag=${IMAGE_TAG}" >> $GITHUB_OUTPUT
- name: 'Set up Docker Buildx'
uses: docker/setup-buildx-action@v2
- name: 'Login to Docker Hub'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_REGISTRY_LOGIN }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: 'Build and push'
uses: docker/build-push-action@v4
with:
push: true
tags: flipperdevices/flipper-k8s-db-backuper:${{steps.tag.outputs.image_tag}}