From f88c73c6f95826f70a04a355cc6b12b068aa27a0 Mon Sep 17 00:00:00 2001 From: Stefano Ortolani Date: Tue, 12 Sep 2023 15:14:31 +0100 Subject: [PATCH] Fix test action at pull request time --- .github/workflows/test-build-latest.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test-build-latest.yml b/.github/workflows/test-build-latest.yml index 3106ab7..94e4a14 100644 --- a/.github/workflows/test-build-latest.yml +++ b/.github/workflows/test-build-latest.yml @@ -25,10 +25,7 @@ jobs: run: | # Initialize variables DOCKER_IMG_TAG=`echo "${{ github.sha }}" | cut -c 1-7` - DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }} - # Login - echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin # Create the environment sed -e '/^[[:space:]]*$/d' -e '/[#@]/d' -e 's/\(^[^=]*\)=\(.*\)/\1="\2"/' template.env > env.hcl # Build and Push - DOCKER_IMG_TAG=$DOCKER_IMG_TAG DOCKER_USERNAME=$DOCKER_USERNAME docker buildx bake -f docker-bake.hcl -f env.hcl + DOCKER_IMG_TAG=$DOCKER_IMG_TAG docker buildx bake -f docker-bake.hcl -f env.hcl