Remove old webhook

This commit is contained in:
Mo 2023-03-25 20:55:23 +01:00
parent a007188aa4
commit fee0363642
2 changed files with 0 additions and 48 deletions
containers/webhook

View file

@ -1,22 +0,0 @@
FROM docker.io/library/rust:latest AS chef
RUN cargo install cargo-chef
WORKDIR app
FROM chef AS planner
COPY . .
RUN cargo chef prepare --recipe-path recipe.json
FROM chef AS builder
RUN apt update && \
apt install libsqlite3-dev -y
COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
RUN cargo build --release --bin git-webhook-client
FROM docker.io/library/debian:stable-slim AS runtime
WORKDIR app
RUN apt update && \
apt install libsqlite3-dev -y
COPY --from=builder /app/target/release/git-webhook-client /usr/local/bin/git-webhook-client
CMD ["git-webhook-client"]

View file

@ -1,26 +0,0 @@
#!/usr/bin/env fish
set -l container_name webhook
set -l container_volumes_dir ~/volumes/$container_name
set -l repo_dir ~/code/git-webhook-client
if systemctl --user is-enabled container-$container_name
systemctl --user disable --now container-$container_name
end
buildah build --layers -t $container_name:latest
cd $repo_dir
cargo update
cargo build -r
podman-default-create \
$container_name \
--network traefik \
-v $repo_dir:/volumes/src:Z \
-v $container_volumes_dir/db:/volumes/db:Z \
-v $container_volumes_dir/repos:/volumes/repos:Z \
-v $container_volumes_dir/logs:/volumes/logs:Z \
-v ~/volumes/nginx/sites:/volumes/sites:z \
-e GWC_CONFIG_FILE=/volumes/src/dev_data/config.yaml \
localhost/$container_name:latest