Compare commits

..

10 commits

Author SHA1 Message Date
sujiba
0d02cb8982 fix: changed docker endpoint
Some checks failed
build container image / release_tag (push) Has been cancelled
build container image / build (push) Has been cancelled
2024-06-09 21:51:15 +02:00
sujiba
f7fec654ad fix: typo 2024-06-09 19:57:26 +02:00
Renovate Bot
3514823825 chore(deps): update php docker tag to v8.3.8 2024-06-06 22:00:43 +00:00
sujiba
df51efb1bb fix: changed port 2024-06-06 23:58:02 +02:00
sujiba
02c48038a8 fix: added missing % 2024-06-06 23:56:44 +02:00
sujiba
f66c4f06cd fix: removed character 2024-06-06 23:56:12 +02:00
sujiba
eb48f28b3e feat: echo release in runner log 2024-06-06 23:55:24 +02:00
sujiba
8fe5302c16 feat: echo release in runner log 2024-06-06 23:54:47 +02:00
sujiba
6827e48bf1 fix 2024-06-06 23:52:29 +02:00
sujiba
268e8d72e2 fix 2024-06-06 23:50:19 +02:00
3 changed files with 11 additions and 10 deletions

View file

@ -19,12 +19,12 @@ jobs:
latest_release=$(curl -s https://git.smail.koeln/api/v1/repos/homelab/docker-ownDynDNS-netcup/releases\?limit\=1 | jq -r '.[] | .tag_name')
# Cut release into year, month and counter.
release_year=$(echo $latest_release | awk -F '.' '//{print $1}')
release_month=$(echo $latest_release | awk -F '.' '//{print $2}')
year=$(echo $latest_release | awk -F '.' '//{print $1}')
month=$(echo $latest_release | awk -F '.' '//{print $2}')
counter=$(echo $latest_release | awk -F '.' '//{print $3}')
# increase the counter, if the release is from the same year and month
if [ $(date +'%Y') -eq release_year ] && [ $(date +'%m') -eq release_month ]; then
if [[ $(date +'%Y') == $year ]] && [[ $(date +'%m') == $month ]]; then
((counter++));
# else reset counter
else
@ -32,8 +32,9 @@ jobs:
fi
# Create
new_release=$(date +'%Y').$(date +'mY').$counter
new_release=$(date +'%Y').$(date +'%m').$counter
echo "RELEASE=$new_release">> $GITHUB_ENV
echo "Release $new_release successfully set"
build:
needs: release_tag
@ -48,13 +49,13 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
#- name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
endpoint: tcp://forgejo-docker-in-docker-1:2375
endpoint: tcp://docker:2376
- name: Build and push
uses: docker/build-push-action@v5

View file

@ -2,7 +2,7 @@
- [ownDynDNS-netcup](#owndyndns-netcup)
- [acknowledgments](#acknowledgments)
- [Nectup configuration](#nectup-configuration)
- [Netcup configuration](#netcup-configuration)
- [Container configuration](#container-configuration)
- [Fritz!Box configuration](#fritzbox-configuration)
@ -12,7 +12,7 @@ This container is based on the work of:
* [PHP](https://hub.docker.com/_/php)
* [Fernwerker ownDynDNS](https://github.com/fernwerker/ownDynDNS)
## Nectup configuration
## Netcup configuration
You need to create your dns entries beforehand:
| Host | Type | Destination |

View file

@ -7,7 +7,7 @@ RUN apk update && \
RUN git clone https://github.com/fernwerker/ownDynDNS.git
# Build container to run the app
FROM php:8.3.7-apache
FROM php:8.3.8-apache
WORKDIR /var/www/html
RUN apt-get update -y && \