Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: tag latest (#11633)

Danny Xu3ddb918b8809
diff --git a/.github/workflows/docker-tag-latest.yml b/.github/workflows/docker-tag-latest.yml
new file mode 100644
index 0000000000..6afae64a13
--- /dev/null
+++ b/.github/workflows/docker-tag-latest.yml
@@ -0,0 +1,27 @@
+name: Docker Tag Latest
+
+on:
+ # push:
+ # branches:
+ # - main
+ workflow_dispatch:
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel.
+jobs:
+ docker:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Login to DockerHub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+ - name: Tag latest image
+ run: |
+ RELEASE_VERSION=${GITHUB_REF_NAME#release/}
+ docker tag bytebase/bytebase:${RELEASE_VERSION} bytebase/bytebase:latest
+ docker push bytebase/bytebase:latest
\ No newline at end of file