-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chown everything to test the volume mount permissions
- Loading branch information
Showing
1 changed file
with
31 additions
and
19 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 |
---|---|---|
@@ -1,23 +1,35 @@ | ||
inputs: | ||
script: | ||
description: 'Script to be passed to the docker image' | ||
required: true | ||
script: | ||
description: "Script to be passed to the docker image" | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- run: |- | ||
docker pull "ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)" | ||
shell: bash | ||
using: "composite" | ||
steps: | ||
- name: Pull docker image | ||
run: |- | ||
docker pull "ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)" | ||
shell: bash | ||
|
||
- run: |- | ||
docker run --rm \ | ||
-v ${{ github.workspace }}:/github/workspace/ \ | ||
-e EM_CACHE=/github/workspace/.emscripten_cache \ | ||
-e YARN_CACHE_FOLDER=/github/workspace/.yarn_cache \ | ||
-e CARGO_HOME=/github/workspace/.cargo \ | ||
-e CCACHE_DIR=/github/workspace/.ccache \ | ||
-e CCACHE_BASEDIR=/github/workspace \ | ||
"ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)" \ | ||
bash -c "${{ inputs.script }}" | ||
shell: bash | ||
- name: Fix permissions | ||
run: |- | ||
sudo chown -R $(id -u):$(id -g) ${{ github.workspace }} | ||
shell: bash | ||
|
||
- name: Run script | ||
run: |- | ||
docker run --rm \ | ||
-v ${{ github.workspace }}:/github/workspace/:delegated \ | ||
-e EM_CACHE=/github/workspace/.emscripten_cache \ | ||
-e YARN_CACHE_FOLDER=/github/workspace/.yarn_cache \ | ||
-e CARGO_HOME=/github/workspace/.cargo \ | ||
-e CCACHE_DIR=/github/workspace/.ccache \ | ||
-e CCACHE_BASEDIR=/github/workspace \ | ||
"ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)" \ | ||
bash -c "${{ inputs.script }}" | ||
shell: bash | ||
|
||
- name: Fix permissions | ||
run: |- | ||
sudo chown -R $(id -u):$(id -g) ${{ github.workspace }} | ||
shell: bash |