Create config directory and move hof+irc_config to it, preparation for docker image publishing
This commit is contained in:
parent
65f6abd7c9
commit
d22bb5908d
@ -1,8 +1,6 @@
|
||||
ircie/
|
||||
save/
|
||||
config/
|
||||
.gitignore
|
||||
docker-compose.yml
|
||||
Dockerfile
|
||||
example.irc_config.yml
|
||||
IDEAS
|
||||
irc_config.yaml
|
||||
IDEAS
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
/target
|
||||
Cargo.lock
|
||||
irc_config.yaml
|
||||
/save
|
||||
config/irc_config.yaml
|
||||
config/hall_of_fame.yaml
|
||||
/ircie
|
@ -1,6 +1,5 @@
|
||||
FROM rust:bookworm
|
||||
WORKDIR /app
|
||||
RUN mkdir save
|
||||
RUN git clone https://git.supernets.org/sad/ircie.git
|
||||
COPY . .
|
||||
RUN cargo build --release
|
||||
|
@ -1,6 +1,6 @@
|
||||
services:
|
||||
hardfight:
|
||||
build: .
|
||||
image: git.supernets.org/hgw/hardfight:latest
|
||||
#build: .
|
||||
volumes:
|
||||
- "$PWD/irc_config.yaml:/app/irc_config.yaml"
|
||||
- "$PWD/save:/app/save"
|
||||
- "$PWD/config/:/app/config/"
|
@ -21,7 +21,7 @@ use rand::{
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
const SAVE_LOC: &'static str = "save/hall_of_fame.yaml";
|
||||
const SAVE_LOC: &'static str = "config/hall_of_fame.yaml";
|
||||
|
||||
const PRESENTATIONS: &'static [&'static str] = &[
|
||||
"A faggot coming straight from the underground!",
|
||||
@ -234,7 +234,7 @@ impl Fight {
|
||||
async fn main() -> std::io::Result<()> {
|
||||
env_logger::init();
|
||||
|
||||
let mut irc = Irc::from_config("irc_config.yaml").await?;
|
||||
let mut irc = Irc::from_config("config/irc_config.yaml").await?;
|
||||
|
||||
irc.add_resource(Fight::default())
|
||||
.await
|
||||
|
Loading…
Reference in New Issue
Block a user