Skip to content

Commit

Permalink
fix: image lib home env
Browse files Browse the repository at this point in the history
Signed-off-by: Peefy <[email protected]>
  • Loading branch information
Peefy committed Oct 17, 2024
1 parent a8eb2b5 commit 508eac3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/image-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,25 @@ jobs:
run: ./examples/test.sh
- name: Run concurrent e2e tests
run: ./scripts/concurrent_test.sh

build-and-test-non-user:
name: Test
runs-on: ubuntu-latest
container:
image: kcllang/kcl
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: v0.11.2
install: true
- name: Test docker non-user
run: docker run --user=999 --rm kcllang/kcl sh -c "kcl run"
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN /usr/local/bin/kcl
RUN apt-get update && apt-get install make gcc git -y && rm -rf /var/lib/apt/lists/*
# The reason for doing this below is to prevent the
# container from not having write permissions.
ENV KCL_LIB_HOME=/tmp
ENV KCL_PKG_PATH=/tmp
ENV KCL_CACHE_PATH=/tmp
# Install the tini
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.3
0.10.4
3 changes: 2 additions & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ func getVersion(version string) string {
}

const (
VersionTypeLatest = Version_0_10_3
VersionTypeLatest = Version_0_10_4

Version_0_10_4 VersionType = "0.10.4"
Version_0_10_3 VersionType = "0.10.3"
Version_0_10_2 VersionType = "0.10.2"
Version_0_10_1 VersionType = "0.10.1"
Expand Down

0 comments on commit 508eac3

Please sign in to comment.