Skip to content

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

chore: update

d-bytebase03cf1d6f9cec
diff --git a/.github/workflows/docker-tag-latest.yml b/.github/workflows/docker-tag-latest.yml
index a221841954..c6a42d8119 100644
--- a/.github/workflows/docker-tag-latest.yml
+++ b/.github/workflows/docker-tag-latest.yml
@@ -15,6 +15,12 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
+ - uses: actions/checkout@v4
+ - name: Extract build args
+ # Extract version from branch name
+ # Example: branch name `release/1.0.0` sets up env.RELEASE_VERSION=1.0.0
+ run: |
+ echo "RELEASE_VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV
- name: Login to DockerHub
uses: docker/login-action@v3
with:
@@ -22,9 +28,8 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Tag latest image
run: |
- RELEASE_VERSION=${GITHUB_REF_NAME#release/}
- echo ${RELEASE_VERSION}
- docker pull --platform=linux/arm64 bytebase/bytebase:${RELEASE_VERSION}
- docker pull --platform=linux/amd64 bytebase/bytebase:${RELEASE_VERSION}
- docker tag bytebase/bytebase:${RELEASE_VERSION} bytebase/bytebase:latest
+ echo ${{ env.RELEASE_VERSION }}
+ docker pull --platform=linux/arm64 bytebase/bytebase:${{ env.RELEASE_VERSION }}
+ docker pull --platform=linux/amd64 bytebase/bytebase:${{ env.RELEASE_VERSION }}
+ docker tag bytebase/bytebase:${{ env.RELEASE_VERSION }} bytebase/bytebase:latest
docker push bytebase/bytebase:latest
\ No newline at end of file