Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jan 6, 2025
1 parent 79d96ad commit 3f52189
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,21 @@ jobs:
- name: Build base image
run: docker compose build base

- name: Build base-dependent images
- name: Build base dependent images
run: docker compose build mdbook shell-*

- name: Build shell-* dependent image
run: docker compose build shell

- name: Build shell dependent image
run: docker compose build vhs

- name: Upload the images
run: |
tag=latest
[[ "$GITHUB_REF" =~ ^refs/tags/ ]] && tag="${GITHUB_REF/refs\/tags\//}"
docker image tag ghcr.io/carapace-sh/base ghcr.io/carapace-sh/base:${tag}
docker image tag ghcr.io/carapace-sh/mdbook ghcr.io/carapace-sh/mdbook:${tag}
docker image tag ghcr.io/carapace-sh/mdbook ghcr.io/carapace-sh/mdbook:${tag}
docker image tag ghcr.io/carapace-sh/shell-bash-ble ghcr.io/carapace-sh/shell-bash-ble:${tag}
docker image tag ghcr.io/carapace-sh/shell-elvish ghcr.io/carapace-sh/shell-elvish:${tag}
docker image tag ghcr.io/carapace-sh/shell-fish ghcr.io/carapace-sh/shell-fish:${tag}
Expand All @@ -46,6 +49,7 @@ jobs:
docker image tag ghcr.io/carapace-sh/shell-xonsh ghcr.io/carapace-sh/shell-xonsh:${tag}
docker image tag ghcr.io/carapace-sh/shell-zsh ghcr.io/carapace-sh/shell-zsh:${tag}
docker image tag ghcr.io/carapace-sh/shell ghcr.io/carapace-sh/shell:${tag}
docker image tag ghcr.io/carapace-sh/vhs ghcr.io/carapace-sh/vhs:${tag}
docker image push ghcr.io/carapace-sh/base:${tag}
docker image push ghcr.io/carapace-sh/mdbook:${tag}
Expand All @@ -58,3 +62,4 @@ jobs:
docker image push ghcr.io/carapace-sh/shell-xonsh:${tag}
docker image push ghcr.io/carapace-sh/shell-zsh:${tag}
docker image push ghcr.io/carapace-sh/shell:${tag}
docker image push ghcr.io/carapace-sh/vhs:${tag}
4 changes: 4 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ services:
shell:
build: shell
image: ghcr.io/carapace-sh/shell

vhs:
build: vhs
image: ghcr.io/carapace-sh/vhs
9 changes: 9 additions & 0 deletions vhs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ghcr.io/carapace-sh/shell

RUN apt-get update && apt-get install -y chromium ffmpeg fonts-jetbrains-mono git

RUN git clone https://github.com/rsteube/vhs --depth 1 \
&& cd vhs \
&& GOBIN=/usr/local/bin/ go install

ENV VHS_NO_SANDBOX 1

0 comments on commit 3f52189

Please sign in to comment.