Compare commits
58 commits
Author | SHA1 | Date | |
---|---|---|---|
f3a8968ef7 | |||
1689b51abf | |||
516e666f6c | |||
a5f5a29265 | |||
f11cb8532c | |||
|
7b80631220 | ||
|
06ee9354f4 | ||
|
6e5b8473bf | ||
9b5dd411d0 | |||
098d01b73d | |||
|
953eeb68b8 | ||
|
8364fb31c6 | ||
893c7117dc | |||
aebe99de56 | |||
|
6c47fd8b4b | ||
|
a6eca496c5 | ||
72e323c919 | |||
|
bcee683120 | ||
|
95fbbde9c2 | ||
|
b1966d8c5d | ||
|
24c6b713df | ||
|
55b68a754a | ||
64f70bf2fe | |||
|
927e438b90 | ||
3e16016dc3 | |||
|
230b24c575 | ||
869503c7dd | |||
|
5d7bccc132 | ||
|
80ac67e514 | ||
|
513f1b3495 | ||
|
f1d857093f | ||
|
b63613f2ad | ||
|
bd4a8f33c6 | ||
|
cdb94066e7 | ||
|
0e0153d03b | ||
bedf637c94 | |||
|
674ce1a646 | ||
dd15520936 | |||
|
7d1712e4ce | ||
|
60c40beb2d | ||
|
145407abab | ||
0434d078d4 | |||
|
e14440e17d | ||
|
91b2a77d6c | ||
|
f3e282442b | ||
|
b5a4c1f7ed | ||
|
9a7218cc81 | ||
|
4e50e1db57 | ||
|
dc49c33e08 | ||
6174923928 | |||
|
5694b7df8c | ||
|
ac12b525f3 | ||
|
fb9cdc217a | ||
|
e5d737f350 | ||
|
837c11f553 | ||
|
c013c6ac72 | ||
|
8ac8e2c311 | ||
|
b4baca252c |
8 changed files with 211 additions and 89 deletions
|
@ -1,39 +0,0 @@
|
||||||
name: build dev image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-dev:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
|
||||||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
|
||||||
|
|
||||||
- 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
|
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
||||||
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: ./docker-build/
|
|
||||||
file: ./docker-build/Dockerfile
|
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
||||||
push: true
|
|
||||||
cleanup: true
|
|
||||||
tags: |
|
|
||||||
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:dev
|
|
128
.forgejo/workflows/build_dev.yaml
Normal file
128
.forgejo/workflows/build_dev.yaml
Normal file
|
@ -0,0 +1,128 @@
|
||||||
|
name: build dev image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release_tag:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
new_release: ${{ steps.create_release.outputs.NEW_RELEASE }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get latest release and create new release
|
||||||
|
id: create_release
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
### Get latest release.
|
||||||
|
latest_release=$(curl -s ${{ env.GITHUB_API_URL }}/repos/${{ env.GITHUB_REPOSITORY }}/releases/latest | jq -r .tag_name)
|
||||||
|
|
||||||
|
### Cut release into year, month and counter.
|
||||||
|
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 counter, if the release is from the same year and month
|
||||||
|
if [[ $(date +'%Y') == $year ]] && [[ $(date +'%m') == $month ]]; then
|
||||||
|
counter=$(($counter + 1));
|
||||||
|
# else reset counter
|
||||||
|
else
|
||||||
|
counter=0;
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Create new release tag
|
||||||
|
new_release=$(date +'%Y').$(date +'%m').$counter
|
||||||
|
echo "NEW_RELEASE=$new_release" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "Release $new_release successfully set"
|
||||||
|
|
||||||
|
build-dev:
|
||||||
|
needs: [release_tag]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
|
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
endpoint: tcp://docker-in-docker:2375
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: ./docker-build/
|
||||||
|
file: ./docker-build/Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
push: true
|
||||||
|
cleanup: true
|
||||||
|
tags: |
|
||||||
|
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:dev
|
||||||
|
|
||||||
|
publish_release:
|
||||||
|
needs: [release_tag, build]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
NEW_RELEASE: ${{ needs.release_tag.outputs.new_release }}
|
||||||
|
GH_TOKEN: "${{ secrets.RENOVATE_TOKEN }}"
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Create new release
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
### Get latest release "created at" timestemp
|
||||||
|
latest_release_time=$(date -d "$(curl -s ${{ env.GITHUB_API_URL }}/repos/${{ env.GITHUB_REPOSITORY }}/releases/latest | jq -r .created_at)")
|
||||||
|
echo "Last release from $latest_release_time"
|
||||||
|
|
||||||
|
### Get last 50 commits
|
||||||
|
curl -s "${{ env.GITHUB_API_URL }}/repos/${{ env.GITHUB_REPOSITORY }}/commits?limit=50" > /tmp/last_50_commits.json
|
||||||
|
|
||||||
|
### Count commits (max. 50) between now and the latest release
|
||||||
|
i=0
|
||||||
|
fin=0
|
||||||
|
|
||||||
|
while [[ $fin == 0 ]]; do
|
||||||
|
|
||||||
|
commit_time=$(date --date="$(< /tmp/last_50_commits.json jq -r --arg i "$i" '.[$i|tonumber] | .created' )");
|
||||||
|
|
||||||
|
if [[ $(date -d "$latest_release_time" +%s) -le $(date -d "$commit_time" +%s) ]]; then
|
||||||
|
echo "$i $commit_time"
|
||||||
|
i=$((i + 1))
|
||||||
|
else
|
||||||
|
fin=1;
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
### Generate list of commit messages since latest release for release message
|
||||||
|
j=0
|
||||||
|
message_list=""
|
||||||
|
|
||||||
|
while [[ "$j" != "$i" ]]; do
|
||||||
|
message=$(< /tmp/last_50_commits.json jq -r --arg j "$j" '.[$j|tonumber] | .commit.message')
|
||||||
|
echo "$j $message"
|
||||||
|
message_newline="${message}\n\""
|
||||||
|
message_list="$message_list* $message_newline"
|
||||||
|
j=$((j + 1))
|
||||||
|
done
|
||||||
|
|
||||||
|
### Generate release message
|
||||||
|
datetime=$(env TZ=Europe/Berlin date "+%A, %d.%m.%Y at %R")
|
||||||
|
body="$i commit(s) since last relase:\\n\\n$(echo $message_list | sed 's/"//g' | sed 's/README.md docker-build docker-compose.yaml example.config renovate.json/*/g')"
|
||||||
|
echo "Release Message Body: $body"
|
||||||
|
|
||||||
|
### Ends with no release
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
release_tag:
|
release_tag:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
release: ${{ steps.create_release.outputs.RELEASE }}
|
new_release: ${{ steps.create_release.outputs.NEW_RELEASE }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -18,32 +18,32 @@ jobs:
|
||||||
id: create_release
|
id: create_release
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# Get latest release.
|
### Get latest release.
|
||||||
latest_release=$(curl -s https://git.smail.koeln/api/v1/repos/homelab/docker-ownDynDNS-netcup/releases/latest | jq -r .tag_name)
|
latest_release=$(curl -s ${{ env.GITHUB_API_URL }}/repos/${{ env.GITHUB_REPOSITORY }}/releases/latest | jq -r .tag_name)
|
||||||
|
|
||||||
# Cut release into year, month and counter.
|
### Cut release into year, month and counter.
|
||||||
year=$(echo $latest_release | awk -F '.' '//{print $1}')
|
year=$(echo $latest_release | awk -F '.' '//{print $1}')
|
||||||
month=$(echo $latest_release | awk -F '.' '//{print $2}')
|
month=$(echo $latest_release | awk -F '.' '//{print $2}')
|
||||||
counter=$(echo $latest_release | awk -F '.' '//{print $3}')
|
counter=$(echo $latest_release | awk -F '.' '//{print $3}')
|
||||||
|
|
||||||
# increase the counter, if the release is from the same year and month
|
### increase the counter, if the release is from the same year and month
|
||||||
if [[ $(date +'%Y') == $year ]] && [[ $(date +'%m') == $month ]]; then
|
if [[ $(date +'%Y') == $year ]] && [[ $(date +'%m') == $month ]]; then
|
||||||
counter=$(($counter + 1));
|
counter=$(($counter + 1));
|
||||||
# else reset counter
|
### else reset counter
|
||||||
else
|
else
|
||||||
counter=0;
|
counter=0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create
|
### Create
|
||||||
new_release=$(date +'%Y').$(date +'%m').$counter
|
new_release=$(date +'%Y').$(date +'%m').$counter
|
||||||
echo "RELEASE=$new_release" >> "$GITHUB_OUTPUT"
|
echo "NEW_RELEASE=$new_release" >> "$GITHUB_OUTPUT"
|
||||||
echo "Release $new_release successfully set"
|
echo "Release $new_release successfully set"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: release_tag
|
needs: release_tag
|
||||||
env:
|
env:
|
||||||
RELEASE: ${{ needs.release_tag.outputs.release }}
|
NEW_RELEASE: ${{ needs.release_tag.outputs.new_release }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -59,8 +59,6 @@ jobs:
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
|
||||||
endpoint: tcp://forgejo-docker-in-docker-1:2375
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
@ -72,13 +70,13 @@ jobs:
|
||||||
cleanup: true
|
cleanup: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:latest
|
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:latest
|
||||||
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:${{ needs.release_tag.outputs.release }}
|
${{ secrets.DOCKER_USER }}/docker-owndyndns-netcup:${{ env.NEW_RELEASE }}
|
||||||
|
|
||||||
publish_release:
|
publish_release:
|
||||||
needs: [release_tag, build]
|
needs: [release_tag, build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
NEW_RELEASE: ${{ needs.release_tag.outputs.release }}
|
NEW_RELEASE: ${{ needs.release_tag.outputs.new_release }}
|
||||||
GH_TOKEN: "${{ secrets.RENOVATE_TOKEN }}"
|
GH_TOKEN: "${{ secrets.RENOVATE_TOKEN }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -87,14 +85,14 @@ jobs:
|
||||||
- name: Create new release
|
- name: Create new release
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# Get latest release "created at" timestemp
|
### Get latest release "created at" timestemp
|
||||||
latest_release_time=$(date -d "$(curl -s https://git.smail.koeln/api/v1/repos/homelab/docker-ownDynDNS-netcup/releases/latest | jq -r .created_at)")
|
latest_release_time=$(date -d "$(curl -s ${{ env.GITHUB_API_URL }}/repos/${{ env.GITHUB_REPOSITORY }}/releases/latest | jq -r .created_at)")
|
||||||
echo "Last release from $latest_release_time"
|
echo "Last release from $latest_release_time"
|
||||||
|
|
||||||
# Get last 50 commits
|
### Get last 50 commits
|
||||||
curl -s "https://git.smail.koeln/api/v1/repos/homelab/docker-ownDynDNS-netcup/commits?limit=50" > /tmp/last_50_commits.json
|
curl -s "${{ env.GITHUB_API_URL }}/repos/${{ env.GITHUB_REPOSITORY }}/commits?limit=50" > /tmp/last_50_commits.json
|
||||||
|
|
||||||
# Count commits (max. 50) between now and the latest release
|
### Count commits (max. 50) between now and the latest release
|
||||||
i=0
|
i=0
|
||||||
fin=0
|
fin=0
|
||||||
|
|
||||||
|
@ -110,7 +108,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Generate list of commit messages since latest release for release message
|
### Generate list of commit messages since latest release for release message
|
||||||
j=0
|
j=0
|
||||||
message_list=""
|
message_list=""
|
||||||
|
|
||||||
|
@ -122,10 +120,15 @@ jobs:
|
||||||
j=$((j + 1))
|
j=$((j + 1))
|
||||||
done
|
done
|
||||||
|
|
||||||
# Generate release message
|
### Generate release message
|
||||||
datetime=$(env TZ=Europe/Berlin date "+%A, %d.%m.%Y at %R")
|
datetime=$(env TZ=Europe/Berlin date "+%A, %d.%m.%Y at %R")
|
||||||
body="Automatically created on $datetime by forgejo action \\n\\n $i commit(s) since last relase:\\n\\n$(echo $message_list | sed 's/"//g' | sed 's/README.md docker-build docker-compose.yaml example.config renovate.json/*/g')"
|
body="$i commit(s) since last relase:\\n\\n$(echo $message_list | sed 's/"//g' | sed 's/README.md docker-build docker-compose.yaml example.config renovate.json/*/g')"
|
||||||
echo "$body"
|
echo "Release Message Body: $body"
|
||||||
|
|
||||||
# Create release
|
### Create release
|
||||||
curl -d "{\"body\": \"$body\", \"name\": \"$NEW_RELEASE\", \"tag_name\": \"$NEW_RELEASE\", \"target_commitish\": \"main\" }" https://git.smail.koeln/api/v1/repos/homelab/docker-ownDynDNS-netcup/releases -H "Authorization: token $GH_TOKEN" -H "Content-Type: application/json"
|
curl -d "{
|
||||||
|
\"body\": \"$body\",
|
||||||
|
\"name\": \"${{ env.NEW_RELEASE }}\",
|
||||||
|
\"tag_name\": \"${{ env.NEW_RELEASE }}\",
|
||||||
|
\"target_commitish\": \"main\"
|
||||||
|
}" ${{ env.GITHUB_API_URL }}/repos/${{ env.GITHUB_REPOSITORY }}/releases -H "Authorization: token ${{ env.GITHUB_TOKEN }}" -H "Content-Type: application/json"
|
24
README.md
24
README.md
|
@ -1,6 +1,8 @@
|
||||||
# ownDynDNS-netcup
|
# docker-ownDynDNS-netcup
|
||||||
|
|
||||||
- [ownDynDNS-netcup](#owndyndns-netcup)
|
[](https://code.offene.cloud/homelab/docker-ownDynDNS-netcup) [](https://code.offene.cloud/homelab/docker-ownDynDNS-netcup/releases)
|
||||||
|
|
||||||
|
- [docker-ownDynDNS-netcup](#docker-owndyndns-netcup)
|
||||||
- [acknowledgments](#acknowledgments)
|
- [acknowledgments](#acknowledgments)
|
||||||
- [Netcup configuration](#netcup-configuration)
|
- [Netcup configuration](#netcup-configuration)
|
||||||
- [Container configuration](#container-configuration)
|
- [Container configuration](#container-configuration)
|
||||||
|
@ -9,26 +11,32 @@
|
||||||
## acknowledgments
|
## acknowledgments
|
||||||
|
|
||||||
This container is based on the work of:
|
This container is based on the work of:
|
||||||
* [PHP](https://hub.docker.com/_/php)
|
* [Docker PHP](https://hub.docker.com/_/php)
|
||||||
* [Fernwerker ownDynDNS](https://github.com/fernwerker/ownDynDNS)
|
* [Fernwerker ownDynDNS](https://github.com/fernwerker/ownDynDNS)
|
||||||
|
|
||||||
## Netcup configuration
|
## Netcup configuration
|
||||||
You need to create your dns entries beforehand:
|
You need to create two dns entries beforehand:
|
||||||
|
|
||||||
| Host | Type | Destination |
|
| Host | Type | Destination |
|
||||||
|----------|-------|--------------|
|
|----------|-------|--------------|
|
||||||
| vpn | AAAA | IPv6 |
|
| vpn | AAAA | IPv6 |
|
||||||
| vpn | A | IPv4 |
|
| vpn | A | IPv4 |
|
||||||
|
| ddns | AAAA | IPv6 |
|
||||||
|
| ddns | A | IPv4 |
|
||||||
|
|
||||||
|
vpn.example.com -> the domain that gets updated
|
||||||
|
|
||||||
|
ddns.example.com -> the domain your Fritz!Box calls for updates
|
||||||
|
|
||||||
## Container configuration
|
## Container configuration
|
||||||
Create docker-compose.yml and config in your app directory i.e.:
|
Create compose.yml and config in your app directory i.e.:
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir -p /opt/docker/owndyndns
|
mkdir -p /opt/docker/owndyndns
|
||||||
cd /opt/docker/owndyndns
|
cd /opt/docker/owndyndns
|
||||||
|
|
||||||
# Create docker-compose.yml and copy the contents from repository file
|
# Create docker-compose.yml and copy the contents from repository file
|
||||||
vi docker-compose.yml
|
vi compose.yml
|
||||||
|
|
||||||
# Create config, copy the contents from repository example.config and change the parameters
|
# Create config, copy the contents from repository example.config and change the parameters
|
||||||
vi config
|
vi config
|
||||||
|
@ -41,8 +49,8 @@ docker compose up -d
|
||||||
* Login to your Fritz!Box
|
* Login to your Fritz!Box
|
||||||
* Go to /Internet/Freigabe/DynDNS
|
* Go to /Internet/Freigabe/DynDNS
|
||||||
* Set mark on "DynDNS benutzen"
|
* Set mark on "DynDNS benutzen"
|
||||||
* Enter Update-URL: `https://<url of your webspace>/update.php?user=<username>&password=<pass>&ipv4=<ipaddr>&ipv6=<ip6addr>&domain=<domain>`
|
* Enter Update-URL: `https://ddns.example.com/update.php?user=<username>&password=<pass>&ipv4=<ipaddr>&ipv6=<ip6addr>&domain=<domain>`
|
||||||
* You only have to change `https://<url of your webspace>` (http without valid TLS certificate)
|
* You only have to change `https://ddns.example.com` (http without valid TLS certificate)
|
||||||
* Domainname: `vpn.example.com`
|
* Domainname: `vpn.example.com`
|
||||||
* Username: Defined in config
|
* Username: Defined in config
|
||||||
* Password: Defined in config
|
* Password: Defined in config
|
||||||
|
|
|
@ -1,23 +1,22 @@
|
||||||
# Get latest app version
|
# Get latest app version
|
||||||
FROM alpine:3.20.1
|
FROM alpine:3.22.0
|
||||||
WORKDIR /clone-workspace
|
WORKDIR /clone-workspace
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk upgrade && \
|
apk upgrade && \
|
||||||
apk add git
|
apk add git && \
|
||||||
RUN git clone https://github.com/fernwerker/ownDynDNS.git
|
git clone https://github.com/fernwerker/ownDynDNS.git
|
||||||
|
|
||||||
# Build container to run the app
|
# Build container to run the app
|
||||||
FROM php:8.3.9-apache
|
FROM php:8.4.8-apache
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update && \
|
||||||
apt-get upgrade -y && \
|
apt-get upgrade -y && \
|
||||||
apt-get install -y \
|
apt-get install --no-install-recommends -y \
|
||||||
libxml2-dev
|
libxml2-dev && \
|
||||||
RUN docker-php-ext-install soap
|
docker-php-ext-install soap && \
|
||||||
RUN apt-get clean -y
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=0 /clone-workspace/ownDynDNS /var/www/html
|
COPY --chown=www-data:www-data --from=0 /clone-workspace/ownDynDNS /var/www/html
|
||||||
COPY --from=0 /clone-workspace/ownDynDNS/.htaccess.example /var/www/html/.htaccess
|
COPY --chown=www-data:www-data --from=0 /clone-workspace/ownDynDNS/.htaccess.example /var/www/html/.htaccess
|
||||||
|
|
||||||
RUN chown -R www-data:www-data /var/www/html/
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
version: "3"
|
---
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ownDynDNS:
|
ownDynDNS:
|
||||||
image: sujiba/docker-owndyndns-netcup:latest
|
image: sujiba/docker-owndyndns-netcup:latest
|
||||||
|
|
|
@ -2,5 +2,14 @@
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": [
|
"extends": [
|
||||||
"local>homelab/renovate-config"
|
"local>homelab/renovate-config"
|
||||||
|
],
|
||||||
|
"baseBranches": ["main"],
|
||||||
|
"useBaseBranchConfig": "merge",
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"description": "Automerge dependency updates",
|
||||||
|
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
|
||||||
|
"automerge": true
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
15
renovate.json_dev
Normal file
15
renovate.json_dev
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"local>homelab/renovate-config"
|
||||||
|
],
|
||||||
|
"baseBranches": ["dev"],
|
||||||
|
"useBaseBranchConfig": "merge",
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"description": "Automerge dependency updates",
|
||||||
|
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
|
||||||
|
"automerge": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue