Skip to content

fix(chart): bump chart version (#338) #8

fix(chart): bump chart version (#338)

fix(chart): bump chart version (#338) #8

name: release dashboard
on:
push:
tags:
- "dashboard-[0-9]+.[0-9]+.[0-9]+"
env:
tagName: ${{ github.ref_name }}
jobs:
release-oceanbase-dashboard:
runs-on: ubuntu-latest
steps:
- name: Log in to Docker hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
config-inline: |
[worker.oci]
max-parallelism = 1
- name: Set Version variables
id: set_version_vars
run: |
echo "version=$(echo $tagName | grep -P '(\d*\.\d*\.\d*)' --only-matching)" >> $GITHUB_OUTPUT
- name: Build and push oceanbase-dashboard w/o cache
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
file: ./build/Dockerfile.dashboard
push: true
tags: ${{ vars.DOCKER_PUSH_BASE }}/oceanbase-dashboard:${{ steps.set_version_vars.outputs.version }}
build-args: |
VERSION=${{ steps.set_version_vars.outputs.version }}
COMMIT_HASH=${{ github.sha }}