From 1a13541c026976ae7492ad7e1fe3e75111bbddca Mon Sep 17 00:00:00 2001 From: April Rieger <63515648+aprilrieger@users.noreply.github.com> Date: Mon, 24 Oct 2022 21:23:08 -0700 Subject: [PATCH] $GITHUB_WORKSPACE FTW GitHub runner open issue: https://github.com/actions/runner/issues/2058 $ echo ${{ github.workspace }} /home/runner/work// $ echo $GITHUB_WORKSPACE /__w//- touch .env.development; TAG=latest docker-compose pull web || true - working-directory: ${{ inputs.subdirectory || github.workspace }} + working-directory: ${{ inputs.subdirectory || $GITHUB_WORKSPACE }} - name: Build and push uses: docker/build-push-action@v3 with: - context: ${{ inputs.docker-context || github.workspace }} + context: ${{ inputs.docker-context || $GITHUB_WORKSPACE }} platforms: linux/amd64,linux/arm64 target: ${{ inputs.docker-target }} build-args: | @@ -66,7 +66,7 @@ jobs: - name: Build and push worker uses: docker/build-push-action@v3 with: - context: ${{ inputs.docker-context || github.workspace }} + context: ${{ inputs.docker-context || $GITHUB_WORKSPACE }} platforms: linux/amd64,linux/arm64 target: ${{ inputs.docker-target }} build-args: |