Compare commits

...

3 commits

Author SHA1 Message Date
Jan Christian Grünhage d715d3d408
chore: bump version and update changelog 2023-01-02 00:49:01 +01:00
Jan Christian Grünhage 276a22e7f6
chore: improve logging granularity 2023-01-02 00:48:07 +01:00
Jan Christian Grünhage 4eb137fed0
fix: make container image actually usable 2023-01-02 00:47:40 +01:00
5 changed files with 22 additions and 7 deletions

View file

@ -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
View file

@ -119,7 +119,7 @@ dependencies = [
[[package]]
name = "cloudflare-ddns-service"
version = "0.5.0"
version = "0.5.1"
dependencies = [
"anyhow",
"cloudflare",

View file

@ -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"

View file

@ -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

View file

@ -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!")?;