feat: with images
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-07-27 00:29:04 +02:00
parent 9a24f10522
commit 8a60a60134
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
3 changed files with 221 additions and 389 deletions

594
ci/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -37,7 +37,7 @@ async fn main() -> eyre::Result<()> {
let pull_articles = client
.container()
.from("docker.io/kasperhermansen/pull-articles:1689069939")
.from("docker.io/kasperhermansen/pull-articles:1690403944")
.with_exec(vec!["echo", &format!("{}", tag)])
.with_env_variable("GIT_USERNAME", "kjuulh")
.with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap())
@ -49,8 +49,9 @@ async fn main() -> eyre::Result<()> {
"areas/blog/posts",
"--out",
"/mnt/posts",
"--static-out=/mnt/static",
])
.directory("/mnt/posts");
.directory("/mnt/");
let dist_dir = client
.container_opts(
@ -71,7 +72,14 @@ async fn main() -> eyre::Result<()> {
])
.with_workdir("/app")
.with_directory(".", src.id().await?)
.with_directory("content/posts", pull_articles.id().await?)
.with_directory(
"content/posts",
pull_articles.directory("posts").id().await?,
)
.with_directory(
"static/assets",
pull_articles.directory("static").id().await?,
)
.with_file(
"content/posts/_index.md",
src.file("content/posts/_index.md").id().await?,
@ -129,7 +137,7 @@ async fn main() -> eyre::Result<()> {
let update_deployment = client
.container()
.from("kasperhermansen/update-deployment:1680472594")
.from("kasperhermansen/update-deployment:1690401410")
.with_env_variable("GIT_USERNAME", "kjuulh")
.with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap())
.with_exec(vec![

0
content/images/.gitkeep Normal file
View File