Skip to content

Commit 1a13541

Browse files
authored
$GITHUB_WORKSPACE FTW
GitHub runner open issue: actions/runner#2058 $ echo ${{ github.workspace }} /home/runner/work/<REPO_NAME>/<REPO_NAME> $ echo $GITHUB_WORKSPACE /__w/<REPO_NAME>/<REPO_NAME
1 parent 2cb3723 commit 1a13541

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-test-lint.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Docker Buildx
3737
uses: docker/setup-buildx-action@v2
3838
with:
39-
context: ${{ inputs.docker-context || github.workspace }}
39+
context: ${{ inputs.docker-context || $GITHUB_WORKSPACE }}
4040
target: ${{ inputs.docker-target }}
4141
- name: Github Container Login
4242
uses: docker/login-action@v2
@@ -48,11 +48,11 @@ jobs:
4848
run: >-
4949
touch .env.development;
5050
TAG=latest docker-compose pull web || true
51-
working-directory: ${{ inputs.subdirectory || github.workspace }}
51+
working-directory: ${{ inputs.subdirectory || $GITHUB_WORKSPACE }}
5252
- name: Build and push
5353
uses: docker/build-push-action@v3
5454
with:
55-
context: ${{ inputs.docker-context || github.workspace }}
55+
context: ${{ inputs.docker-context || $GITHUB_WORKSPACE }}
5656
platforms: linux/amd64,linux/arm64
5757
target: ${{ inputs.docker-target }}
5858
build-args: |
@@ -66,7 +66,7 @@ jobs:
6666
- name: Build and push worker
6767
uses: docker/build-push-action@v3
6868
with:
69-
context: ${{ inputs.docker-context || github.workspace }}
69+
context: ${{ inputs.docker-context || $GITHUB_WORKSPACE }}
7070
platforms: linux/amd64,linux/arm64
7171
target: ${{ inputs.docker-target }}
7272
build-args: |

0 commit comments

Comments
 (0)