Skip to content

Commit

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

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

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

- 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/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 @@ -47,6 +48,7 @@ jobs:
docker image tag ghcr.io/carapace-sh/shell ghcr.io/carapace-sh/shell:${tag}
docker image push ghcr.io/carapace-sh/base:${tag}
docker image push ghcr.io/carapace-sh/mdbook:${tag}
docker image push ghcr.io/carapace-sh/shell-bash-ble:${tag}
docker image push ghcr.io/carapace-sh/shell-elvish:${tag}
docker image push ghcr.io/carapace-sh/shell-fish:${tag}
Expand Down
5 changes: 5 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ services:
build: base
image: ghcr.io/carapace-sh/base

mdbook:
build: mdbook
image: ghcr.io/carapace-sh/mdbook


shell-bash-ble:
build: shell-bash-ble
image: ghcr.io/carapace-sh/shell-bash-ble
Expand Down
13 changes: 13 additions & 0 deletions mdbook/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ghcr.io/carapace-sh/base
ARG version=0.4.43

RUN apt-get update && apt-get install -y unzip

RUN curl -L "https://github.com/rust-lang/mdBook/releases/download/v${version}/mdbook-v${version}-x86_64-unknown-linux-gnu.tar.gz" | tar -xvz mdbook \
&& mv mdbook /usr/local/bin/

RUN curl -L "https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.7.7/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip" > mdbook-linkcheck.zip \
&& unzip mdbook-linkcheck.zip mdbook-linkcheck \
&& rm mdbook-linkcheck.zip \
&& chmod +x mdbook-linkcheck \
&& mv mdbook-linkcheck /usr/local/bin/

0 comments on commit 79d96ad

Please sign in to comment.