Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: BB_VERSION -> RELEASE_VERSION (#1061)
tianzhou99980d33b4ab
diff --git a/.github/workflows/build-release-image.yml b/.github/workflows/build-release-image.ymlindex c307b79f51..6d353f3e1f 100644--- a/.github/workflows/build-release-image.yml+++ b/.github/workflows/build-release-image.yml@@ -13,9 +13,9 @@ jobs:- uses: actions/checkout@v2- name: Extract build args# Extract version from branch name- # Example: branch name `release/v1.0.0` sets up env.BB_VERSION=1.0.0+ # Example: branch name `release/v1.0.0` sets up env.RELEASE_VERSION=1.0.0run: |- echo "BB_VERSION=${GITHUB_REF_NAME#release/v}" >> $GITHUB_ENV+ echo "RELEASE_VERSION=${GITHUB_REF_NAME#release/v}" >> $GITHUB_ENVecho "GIT_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENVecho "BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_ENVecho "BUILD_USER=$(id -u -n)" >> $GITHUB_ENV@@ -32,28 +32,28 @@ jobs:with:file: Dockerfilepush: true- tags: bytebase/bytebase:${{ env.BB_VERSION }}+ tags: bytebase/bytebase:${{ env.RELEASE_VERSION }}build-args: |- VERSION=${{ env.BB_VERSION }}+ VERSION=${{ env.RELEASE_VERSION }}GIT_COMMIT=${{ env.GIT_COMMIT }}BUILD_TIME=${{ env.BUILD_TIME }}BUILD_USER=${{ env.BUILD_USER }}- name: Image digest- run: echo "Successfully pushed bytebase/bytebase:${{ env.BB_VERSION }} ${{ steps.bytebase_build.outputs.digest }}"+ run: echo "Successfully pushed bytebase/bytebase:${{ env.RELEASE_VERSION }} ${{ steps.bytebase_build.outputs.digest }}"- name: Build and push bb CLIid: bb_builduses: docker/build-push-action@v2with:file: Dockerfile.bbpush: true- tags: bytebase/bb:${{ env.BB_VERSION }}+ tags: bytebase/bb:${{ env.RELEASE_VERSION }}build-args: |- VERSION=${{ env.BB_VERSION }}+ VERSION=${{ env.RELEASE_VERSION }}GIT_COMMIT=${{ env.GIT_COMMIT }}BUILD_TIME=${{ env.BUILD_TIME }}BUILD_USER=${{ env.BUILD_USER }}- name: Image digest- run: echo "Successfully pushed bytebase/bb:${{ env.BB_VERSION }} ${{ steps.bb_build.outputs.digest }}"+ run: echo "Successfully pushed bytebase/bb:${{ env.RELEASE_VERSION }} ${{ steps.bb_build.outputs.digest }}"release-binary:runs-on: ubuntu-latest