A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
1
name: Deploy3
on:4
push:5
branches: [ "main" ]6
pull_request:7
branches: [ "main" ]9
jobs:11
build:13
runs-on: ubuntu-latest15
steps:16
- uses: actions/checkout@v317
- name: Build the Docker image18
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
1
FROM rust:latest as builder2
WORKDIR /srv/verbal4
RUN cargo init6
COPY ./Cargo.toml ./Cargo.toml8
RUN cargo build --release9
RUN rm ./src/*.rs11
COPY ./src ./src13
RUN rm ./target/release/deps/verbal*14
RUN cargo build --release16
COPY ./app ./app17
COPY ./www ./www18
COPY ./tailwind.config.js ./tailwind.config.js20
ARG VERSION22
COPY ./script ./script23
RUN ./script/build --mode=prod25
CMD ["./target/release/verbal"]
1
version: "3.9"2
services:3
web:4
build:5
context: .6
args:7
- VERSION8
ports:9
- "4202:4202"10
volumes:11
- /home/andreas/.config/:/root/.config/:z12
- /etc/letsencrypt/:/etc/letsencrypt/:z13
- /srv/verbal/media/:/srv/verbal/media/:z