-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tudor
committed
Dec 2, 2024
1 parent
1f7eed9
commit 29533e8
Showing
2 changed files
with
37 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Test Docker on GitHub Actions | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
message: | ||
description: 'Build as described in README.md' | ||
push: | ||
branches: | ||
- 'tudor/feat-docker-action' | ||
|
||
jobs: | ||
build_from_scratch: | ||
runs-on: ubuntu-latest | ||
services: | ||
docker: | ||
image: docker:dind | ||
options: --privileged | ||
container: | ||
image: ubuntu:22.04 | ||
steps: | ||
- name: Install Docker | ||
run: | | ||
apt-get update | ||
apt-get install -y docker.io | ||
- name: DinD run | ||
run: | | ||
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 &&\ | ||
wget -qO- https://get.pnpm.io/install.sh | ENV=\"$HOME/.bashrc\" SHELL=\"$(which bash)\" bash - && source /$HOME/.bashrc &&\ | ||
git clone --single-branch --branch tudor/feat-docker-action https://github.com/electric-sql/pglite.git &&\ | ||
cd pglite &&\ | ||
pnpm install && pnpm build:all" |
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