Compare commits
10 commits
fb6a0e7284
...
0d02cb8982
Author | SHA1 | Date | |
---|---|---|---|
|
0d02cb8982 | ||
|
f7fec654ad | ||
|
3514823825 | ||
|
df51efb1bb | ||
|
02c48038a8 | ||
|
f66c4f06cd | ||
|
eb48f28b3e | ||
|
8fe5302c16 | ||
|
6827e48bf1 | ||
|
268e8d72e2 |
3 changed files with 11 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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 |
|
||||
|
|
|
@ -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 && \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue