From f937ea57455667c73cc5a6f607eb329d36a16174 Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn Date: Sat, 26 Jun 2021 00:38:18 -0700 Subject: [PATCH] fix missing backslash --- .github/workflows/on-tag.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on-tag.yml b/.github/workflows/on-tag.yml index f0041ecd0..54642f704 100644 --- a/.github/workflows/on-tag.yml +++ b/.github/workflows/on-tag.yml @@ -27,6 +27,9 @@ jobs: - name: Show set environment variables run: | printf " TAG: %s\n" "$TAG" + + - name: Add SHORT_SHA env property with commit short sha + run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV - name: Login to Docker for building run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin @@ -34,9 +37,6 @@ jobs: - name: Checkout project uses: actions/checkout@v2 - - name: Add SHORT_SHA env property with commit short sha - run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV - - name: Init repo for Dockerization run: docker/init.sh "$TAG" @@ -67,7 +67,7 @@ jobs: --cache-to "type=local,dest=/tmp/.buildx-cache" \ --platform linux/amd64,linux/arm64,linux/arm/v7 \ --tag ${{ secrets.DOCKER_HUB_USER }}/${{ matrix.service }}:$TAG \ - --output "type=registry" ./${{ matrix.service }}/ + --output "type=registry" ./${{ matrix.service }}/ \ --build-arg commitHash=$SHORT_SHA - name: Run Docker buildx for ${{ matrix.service }} against latest @@ -77,6 +77,6 @@ jobs: --cache-to "type=local,dest=/tmp/.buildx-cache" \ --platform linux/amd64,linux/arm64,linux/arm/v7 \ --tag ${{ secrets.DOCKER_HUB_USER }}/${{ matrix.service }}:latest \ - --output "type=registry" ./${{ matrix.service }}/ + --output "type=registry" ./${{ matrix.service }}/ \ --build-arg commitHash=$SHORT_SHA