From 885f6b3aaf95753f16589e13073cfadebf773099 Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Mon, 9 Oct 2023 16:41:07 +0800 Subject: [PATCH] Fix: docker build args --- .github/workflows/release_docker.yml | 2 +- build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_docker.yml b/.github/workflows/release_docker.yml index c430792..28c4e0e 100644 --- a/.github/workflows/release_docker.yml +++ b/.github/workflows/release_docker.yml @@ -41,7 +41,7 @@ jobs: with: context: . build-args: - VERSION="v${{ steps.get_version.outputs.VERSION }}" + VERSION=v${{ steps.get_version.outputs.VERSION }} push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/build.sh b/build.sh index c4cf372..e220994 100755 --- a/build.sh +++ b/build.sh @@ -47,7 +47,7 @@ function ParseArgs() { exit 0 ;; v) - VERSION="$(echo "$OPTARG" | sed 's/ //g')" + VERSION="$(echo "$OPTARG" | sed 's/ //g' | sed 's/"//g' | sed 's/\n//g')" ;; w) WEB_VERSION="$OPTARG"