From 16ea00bd83d577e73e22dc778fcd746075394a7a Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 28 Feb 2023 23:38:37 +0800 Subject: [PATCH] feat: add build release image --- .github/workflows/build-and-push-release-image.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-push-release-image.yml b/.github/workflows/build-and-push-release-image.yml index 282a91a..6af2af8 100644 --- a/.github/workflows/build-and-push-release-image.yml +++ b/.github/workflows/build-and-push-release-image.yml @@ -4,7 +4,7 @@ on: push: branches: # Run on pushing branches like `release/1.0.0` - - "release/v*.*.*" + - "release/*.*.*" jobs: build-and-push-release-image: @@ -17,15 +17,15 @@ jobs: - name: Extract build args # Extract version from branch name - # Example: branch name `release/v1.0.0` sets up env.VERSION=1.0.0 + # Example: branch name `release/1.0.0` sets up env.VERSION=1.0.0 run: | - echo "VERSION=${GITHUB_REF_NAME#release/v}" >> $GITHUB_ENV + echo "VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV - name: Login to Docker Hub uses: docker/login-action@v2 with: - username: neosmemo - password: ${{ secrets.DOCKER_NEOSMEMO_TOKEN }} + username: stevenlgtm + password: ${{ secrets.DOCKER_TOKEN }} - name: Set up Docker Buildx id: buildx @@ -41,4 +41,4 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm64 push: true - tags: neosmemo/memos:latest, neosmemo/memos:${{ env.VERSION }} + tags: stevenlgtm/corgi:${{ env.VERSION }}