From 6ed26ad8c2c29af9155c2753f14ead9ca9513e22 Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Wed, 11 Oct 2023 18:15:26 -0600 Subject: [PATCH] Fix conditional syntax Signed-off-by: Florent Poinsard --- .github/workflows/docker_build_lite.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker_build_lite.yml b/.github/workflows/docker_build_lite.yml index c3834dd8fe1..6f661f0746c 100644 --- a/.github/workflows/docker_build_lite.yml +++ b/.github/workflows/docker_build_lite.yml @@ -43,7 +43,7 @@ jobs: if: github.ref == 'refs/heads/main' uses: docker/build-push-action@v5 with: - file: ${{ (matrix.branch == 'latest') && './docker/lite/Dockerfile' || './docker/lite/Dockerfile.' + matrix.branch }} + file: ${{ (matrix.branch == 'latest') && './docker/lite/Dockerfile' || './docker/lite/Dockerfile.' matrix.branch }} push: true tags: vitess/lite:${{ matrix.branch }} @@ -55,6 +55,6 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v5 with: - file: ${{ (matrix.branch == 'latest') && './docker/lite/Dockerfile' || './docker/lite/Dockerfile.' + matrix.branch }} + file: ${{ (matrix.branch == 'latest') && './docker/lite/Dockerfile' || './docker/lite/Dockerfile.' matrix.branch }} push: true - tags: ${{ (matrix.branch == 'latest') && 'vitess/lite:' + env.TAG_NAME || 'vitess/lite:' + env.TAG_NAME + '-' + matrix.branch }} \ No newline at end of file + tags: ${{ (matrix.branch == 'latest' && 'vitess/lite:' env.TAG_NAME) || ('vitess/lite:' env.TAG_NAME '-' matrix.branch) }} \ No newline at end of file