From 04b0f206473e56b4ed68563d4c671078420f2e74 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 23 Nov 2023 09:54:20 -0300 Subject: [PATCH 1/6] fix: discover default interface sometimes docker would change the container interface --- Dockerfile | 1 + whatsmydefaulteth.sh | 3 +++ whatsmyip6.sh | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 whatsmydefaulteth.sh diff --git a/Dockerfile b/Dockerfile index 193d0ab..9672abc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,7 @@ RUN install -dm 2750 -o root -g root /var/lib/monit COPY --from=build /etc/monitrc /etc/monitrc COPY ./nsupdate.sh /usr/local/bin/nsupdate COPY ./whatsmyip6.sh /usr/local/bin/whatsmyip6 +COPY ./whatsmydefaulteth.sh /usr/local/bin/whatsmydefaulteth COPY ./syslogize.sh /usr/local/bin/syslogize COPY ./zeroconf.sh /usr/local/bin/zeroconf COPY ./zeroconf.conf /etc/zeroconf.conf diff --git a/whatsmydefaulteth.sh b/whatsmydefaulteth.sh new file mode 100755 index 0000000..c5f8225 --- /dev/null +++ b/whatsmydefaulteth.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +ip -6 r | grep default | tr -s " " | cut -d " " -f 5 diff --git a/whatsmyip6.sh b/whatsmyip6.sh index 641fb7d..858a559 100755 --- a/whatsmyip6.sh +++ b/whatsmyip6.sh @@ -1,3 +1,3 @@ #!/bin/sh -ip address show ${1:-eth0} | grep inet6 | grep global | tr -s " " | cut -d " " -f 3 | cut -d / -f 1 +ip address show ${1:-$(whatsmydefaulteth)} | grep inet6 | grep global | tr -s " " | cut -d " " -f 3 | cut -d / -f 1 From fd9bdb2eef529007f1f08be60a9d94e0ab78074e Mon Sep 17 00:00:00 2001 From: f Date: Thu, 23 Nov 2023 18:30:30 -0300 Subject: [PATCH 2/6] ci: rebuild From d11e588f03616e541961dfd609e4b8e7f0404b4b Mon Sep 17 00:00:00 2001 From: f Date: Mon, 4 Dec 2023 11:03:14 -0300 Subject: [PATCH 3/6] feat: alpine upgrades --- .woodpecker.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 4274138..e6eb420 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -16,9 +16,14 @@ pipeline: when: branch: "antifascista" event: "push" + analyse: + image: "gitea.nulo.in/sutty/sutty" + commands: + - "apk add dive" + - "dive gitea.nulo.in/sutty/CHANGEME:${ALPINE_VERSION}" matrix: ALPINE_VERSION: - - "3.18.4" - - "3.17.5" - - "3.16.7" - - "3.15.10" + - "3.18.5" + - "3.17.6" + - "3.16.8" + - "3.15.11" From 8dd7d4605a88719297eecaf49fa360cc4cb6796a Mon Sep 17 00:00:00 2001 From: f Date: Mon, 4 Dec 2023 11:06:47 -0300 Subject: [PATCH 4/6] fix: bad commit --- .woodpecker.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e6eb420..e52cecb 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -16,11 +16,6 @@ pipeline: when: branch: "antifascista" event: "push" - analyse: - image: "gitea.nulo.in/sutty/sutty" - commands: - - "apk add dive" - - "dive gitea.nulo.in/sutty/CHANGEME:${ALPINE_VERSION}" matrix: ALPINE_VERSION: - "3.18.5" From b921379aa0fa1d0c567bb6ee7608310f56c8b910 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 7 Dec 2023 10:22:26 -0300 Subject: [PATCH 5/6] feat: alpine 3.19 --- .woodpecker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index e52cecb..0bf850c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -18,6 +18,7 @@ pipeline: event: "push" matrix: ALPINE_VERSION: + - "3.19.0" - "3.18.5" - "3.17.6" - "3.16.8" From b8b98ef2e0be463824b4a3201760641c90c1fd53 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 12 Dec 2023 10:03:59 -0300 Subject: [PATCH 6/6] ci: build