From c875d92960833c18dae018c73bce6004e3842bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20K=C3=B8hler=20Warmdahl?= Date: Mon, 28 Oct 2024 08:46:38 +0100 Subject: [PATCH] Use correct variable format --- .github/workflows/docker-release.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-release.yaml b/.github/workflows/docker-release.yaml index ebdf0241..f120a383 100644 --- a/.github/workflows/docker-release.yaml +++ b/.github/workflows/docker-release.yaml @@ -22,15 +22,15 @@ jobs: set +e docker manifest inspect ${{env.IMAGE_NAME}}:rust${{env.RUST_VERSION}}-ghc${{env.GHC_VERSION}} exitcode=$? - if [ exitcode -eq "1" ]; then + if [ $exitcode -eq "1" ]; then echo "Error: ${{env.IMAGE_NAME}}:rust${{env.RUST_VERSION}}-ghc${{env.GHC_VERSION}} already exist" fi -# - name: Login to Docker Hub -# uses: docker/login-action@v3 -# with: -# username: ${{ env.DOCKERHUB_USERNAME }} -# password: ${{ env.DOCKERHUB_TOKEN }} + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ env.DOCKERHUB_USERNAME }} + password: ${{ env.DOCKERHUB_TOKEN }} - name: Clone repo uses: actions/checkout@v4