Skip to content

fix: refresh db list after re-login (#576) #255

fix: refresh db list after re-login (#576)

fix: refresh db list after re-login (#576) #255

Workflow file for this run

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
name: Release docker image
jobs:
docker:
name: Build docker image
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'GreptimeTeam' }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Login to Dockerhub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to AliCloud Container Registry
uses: docker/login-action@v2
with:
registry: greptime-registry.cn-hangzhou.cr.aliyuncs.com
username: ${{ secrets.ALICLOUD_USERNAME }}
password: ${{ secrets.ALICLOUD_PASSWORD }}
- name: Configure tag # If the release tag is v0.1.0, then the image version tag will be 0.1.0.
shell: bash
run: |
commitShortSHA=`echo ${{ github.sha }} | cut -c1-8`
IMAGE_TAG=$commitShortSHA
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./docker/Dockerfile
push: true
#platforms: linux/amd64,linux/arm64
platforms: linux/amd64
tags: |
greptime/greptimedb-dashboard:latest
greptime/greptimedb-dashboard:${{ env.IMAGE_TAG }}
greptime-registry.cn-hangzhou.cr.aliyuncs.com/greptime/greptimedb-dashboard:latest
greptime-registry.cn-hangzhou.cr.aliyuncs.com/greptime/greptimedb-dashboard:${{ env.IMAGE_TAG }}