Skip to content

Commit

Permalink
$GITHUB_WORKSPACE FTW
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aprilrieger authored Oct 25, 2022
1 parent 2cb3723 commit 1a13541
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-test-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
context: ${{ inputs.docker-context || github.workspace }}
context: ${{ inputs.docker-context || $GITHUB_WORKSPACE }}
target: ${{ inputs.docker-target }}
- name: Github Container Login
uses: docker/login-action@v2
Expand All @@ -48,11 +48,11 @@ jobs:
run: >-
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: |
Expand All @@ -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: |
Expand Down

0 comments on commit 1a13541

Please sign in to comment.