File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed
Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Test Docker on GitHub Actions
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ message :
7+ description : ' Build as described in README.md'
8+ push :
9+ branches :
10+ - ' tudor/feat-docker-action'
11+
12+ jobs :
13+ build_from_scratch :
14+ runs-on : ubuntu-latest
15+ services :
16+ docker :
17+ image : docker:dind
18+ options : --privileged
19+ container :
20+ image : ubuntu:22.04
21+ steps :
22+ - name : Install Docker
23+ run : |
24+ apt-get update
25+ apt-get install -y docker.io
26+
27+ - name : DinD run
28+ run : |
29+ docker run -v /var/run/docker.sock:/var/run/docker.sock node:20 bash -c "apt update && apt install -y git wget curl docker.io &&\
30+ wget -qO- https://get.pnpm.io/install.sh | ENV=\"$HOME/.bashrc\" SHELL=\"$(which bash)\" bash - && source /$HOME/.bashrc &&\
31+ git clone --single-branch --branch tudor/feat-docker-action https://github.com/electric-sql/pglite.git &&\
32+ cd pglite &&\
33+ pnpm install && pnpm build:all"
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ IMG_NAME="electricsql/pglite-builder"
1616IMG_TAG=" ${PG_VERSION} _${SDK_VERSION} "
1717SDK_ARCHIVE=" ${SDK_ARCHIVE:- python3.13-wasm-sdk-Ubuntu-22.04.tar.lz4} "
1818WASI_SDK_ARCHIVE=" ${WASI_SDK_ARCHIVE:- python3.13-wasi-sdk-Ubuntu-22.04.tar.lz4} "
19+ VOL=" ${VOL:- $(pwd)/ packages/ pglite} "
1920
21+ # -v "/$(pwd)/packages/pglite:/workspace/packages/pglite:rw" \
2022docker run \
2123 --rm \
2224 -e OBJDUMP=${OBJDUMP:- true} \
@@ -28,6 +30,6 @@ docker run \
2830 -v " /$( pwd) /cibuild:/workspace/cibuild:rw" \
2931 -v " /$( pwd) /patches:/opt/patches:rw" \
3032 -v " /$( pwd) /tests:/workspace/tests:rw" \
31- -v " / $( pwd ) /packages/pglite :/workspace/packages/pglite:rw" \
33+ -v $VOL :/workspace/packages/pglite:rw \
3234 $IMG_NAME :$IMG_TAG \
33- bash . /cibuild/build-all.sh
35+ bash /workspace /cibuild/build-all.sh
You can’t perform that action at this time.
0 commit comments