-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use ${{ runner.temp }} instead of $HOME (#6)
* fix: use `${{ runner.temp }}` instead of `$HOME` We change the location to store garden-action temporary files to use ${{ runner.temp }}. This directory is being cleaned before and after the job execution. This is helpful in case this action is being used on self-hosted runners, and stops polluting the home directory of self hosted runners in case the job is not being executed in isolated VMs. * docs: bump version to 1.1 and update kubeconfig default co-authored-by: twelvemo <[email protected]> --------- Co-authored-by: twelvemo <[email protected]>
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ The secret will be [masked to prevent accidental exposure in logs](https://docs. | |
## `kubeconfig-location` | ||
|
||
**Optional** Specify a location the GitHub action should be saved to in the container while running the action. This is only necessary if you have configured the `kubeconfig` parameter in your project.garden.yaml provider configuration. Please note that the home directory in the GitHub action context is `/github/home`. | ||
Defaults to `/github/home/.kube/config` | ||
Defaults to `${{ runner.temp }}/garden/kubeconfig` | ||
|
||
## `garden-version` | ||
|
||
|
@@ -100,7 +100,7 @@ jobs: | |
role-duration-seconds: 3600 | ||
- uses: actions/[email protected] | ||
- name: Deploy preview env with Garden | ||
uses: garden-io/garden-action@v1.0 | ||
uses: garden-io/garden-action@v1.1 | ||
with: | ||
command: deploy --env preview | ||
kubeconfig: ${{ secrets.KUBECONFIG }} | ||
|
@@ -117,7 +117,7 @@ jobs: | |
role-duration-seconds: 3600 | ||
- uses: actions/[email protected] | ||
- name: Run tests in ci environment with Garden | ||
uses: garden-io/garden-action@v1.0 | ||
uses: garden-io/garden-action@v1.1 | ||
with: | ||
command: > | ||
test --env ci | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters