From cbe0b9b3d573b3a47a73ac352bc1693e61dc4555 Mon Sep 17 00:00:00 2001 From: Bryan Gerlach Date: Sat, 1 Feb 2025 14:58:36 -0600 Subject: [PATCH] changed docker-build action --- .github/workflows/docker-build.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 982bb01..1e1e424 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -8,10 +8,6 @@ on: tags: - 'v*.*.*' -env: - CREATE_IMAGE: "true" - IMAGE_TAG: "dev" - jobs: build: runs-on: ubuntu-latest @@ -19,13 +15,13 @@ jobs: - name: set docker image tag run: | if [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then - echo "IMAGE_TAG=dev" >> $GITHUB_ENV - echo "CREATE_IMAGE=true" >> $GITHUB_ENV + echo "IMAGE_TAG=dev" >> "$GITHUB_ENV" + echo "CREATE_IMAGE=true" >> "$GITHUB_ENV" elif [[ "${{ github.ref_type }}" == "tag" ]]; then echo "IMAGE_TAG=${{ github.ref_name }}" - echo "CREATE_IMAGE=true" >> $GITHUB_ENV + echo "CREATE_IMAGE=true" >> "$GITHUB_ENV" else - echo "CREATE_IMAGE=false" >> $GITHUB_ENV + echo "CREATE_IMAGE=false" >> "$GITHUB_ENV" fi - name: Login to Docker Hub