Compare commits
3 commits
32b8d8fefb
...
d715d3d408
Author | SHA1 | Date | |
---|---|---|---|
d715d3d408 | |||
276a22e7f6 | |||
4eb137fed0 |
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -2,6 +2,17 @@
|
|||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [0.5.1] - 2023-01-01
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Make container image actually usable
|
||||
|
||||
### Miscellaneous Tasks
|
||||
|
||||
- Improve logging granularity
|
||||
- Bump version and update changelog
|
||||
|
||||
## [0.5.0] - 2023-01-01
|
||||
|
||||
### Bug Fixes
|
||||
|
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -119,7 +119,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "cloudflare-ddns-service"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"cloudflare",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "cloudflare-ddns-service"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
authors = ["Jan Christian Grünhage <jan.christian@gruenhage.xyz>"]
|
||||
edition = "2018"
|
||||
description = "A daemon to use Cloudflare as a DDNS provider"
|
||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -1,6 +1,6 @@
|
|||
FROM docker.io/rust:alpine3.17 as builder
|
||||
FROM docker.io/rust:bullseye as builder
|
||||
|
||||
RUN apk add musl-dev openssl-dev pkgconf
|
||||
RUN apt update && apt install libssl-dev pkg-config
|
||||
RUN cargo install cargo-auditable
|
||||
|
||||
COPY . /app
|
||||
|
@ -8,6 +8,10 @@ WORKDIR /app
|
|||
|
||||
RUN cargo auditable build --release
|
||||
|
||||
FROM docker.io/alpine:3.17
|
||||
FROM docker.io/debian:bullseye-slim
|
||||
|
||||
RUN apt update && apt install openssl ca-certificates
|
||||
|
||||
COPY --from=builder /app/target/release/cloudflare-ddns-service /usr/local/bin
|
||||
|
||||
CMD /usr/local/bin/cloudflare-ddns-service
|
||||
|
|
|
@ -107,7 +107,7 @@ async fn update(
|
|||
log::debug!("ipv4 unchanged, continuing...");
|
||||
}
|
||||
_ => {
|
||||
log::debug!("ipv4 changed, setting record");
|
||||
log::info!("ipv4 changed, setting record");
|
||||
let rid = get_record(zone, config.domain.clone(), network::A_RECORD, cf_client)
|
||||
.await
|
||||
.context("couldn't find record!")?;
|
||||
|
@ -133,7 +133,7 @@ async fn update(
|
|||
log::debug!("ipv6 unchanged, continuing...")
|
||||
}
|
||||
_ => {
|
||||
log::debug!("ipv4 changed, setting record");
|
||||
log::info!("ipv6 changed, setting record");
|
||||
let rid = get_record(zone, config.domain.clone(), network::AAAA_RECORD, cf_client)
|
||||
.await
|
||||
.context("couldn't find record!")?;
|
||||
|
|
Loading…
Reference in a new issue