Skip to content

Commit d644fce

Browse files
authored
v6.0.0 (#129)
**Complete rewrite using [nushell](https://nushell.sh)** ## Major updates and breaking changes * All environment variables now begin `BF_NGINX_WEBDAV` ## Build updates * Updating workflows to latest versions * Using -dev instead of -beta for development builds ## Development updates * Enforcing LF line endings
1 parent e57e023 commit d644fce

File tree

19 files changed

+67
-84
lines changed

19 files changed

+67
-84
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Always use LF endings.
2+
* text eol=lf

.github/workflows/auto-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
-
1212
name: Checkout Branch ${{ github.ref_name }}
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
-
1515
name: Create Pull Request
1616
uses: bfren/pull-request@v2

.github/workflows/dev.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
steps:
1313
-
1414
name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
build:
1717
runs-on: ubuntu-latest
1818
steps:
1919
-
2020
name: Checkout code
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
-
2323
name: Get repository name
2424
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
@@ -31,20 +31,20 @@ jobs:
3131
id: version
3232
-
3333
name: Set up QEMU
34-
uses: docker/setup-qemu-action@v2
34+
uses: docker/setup-qemu-action@v3
3535
-
3636
name: Set up Docker Buildx
37-
uses: docker/setup-buildx-action@v2
37+
uses: docker/setup-buildx-action@v3
3838
-
3939
name: Login to DockerHub
40-
uses: docker/login-action@v2
40+
uses: docker/login-action@v3
4141
with:
4242
username: ${{ secrets.DOCKERHUB_USERNAME }}
4343
password: ${{ secrets.DOCKERHUB_TOKEN }}
4444
-
4545
name: Build and push
4646
id: docker_build
47-
uses: docker/build-push-action@v4
47+
uses: docker/build-push-action@v5
4848
with:
4949
build-args: |
5050
BF_IMAGE=${{ env.REPOSITORY_NAME }}
@@ -53,7 +53,7 @@ jobs:
5353
platforms: linux/amd64,linux/arm/v7,linux/arm64
5454
tags: |
5555
bfren/nginx-webdav:dev
56-
bfren/nginx-webdav:${{ steps.version.outputs.contents }}-beta
56+
bfren/nginx-webdav:${{ steps.version.outputs.contents }}-dev
5757
-
5858
name: Image digest
5959
run: echo ${{ steps.docker_build.outputs.digest }}

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
-
1313
name: Checkout code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
-
1616
name: Get repository name
1717
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
@@ -36,20 +36,20 @@ jobs:
3636
id: version
3737
-
3838
name: Set up QEMU
39-
uses: docker/setup-qemu-action@v2
39+
uses: docker/setup-qemu-action@v3
4040
-
4141
name: Set up Docker Buildx
42-
uses: docker/setup-buildx-action@v2
42+
uses: docker/setup-buildx-action@v3
4343
-
4444
name: Login to DockerHub
45-
uses: docker/login-action@v2
45+
uses: docker/login-action@v3
4646
with:
4747
username: ${{ secrets.DOCKERHUB_USERNAME }}
4848
password: ${{ secrets.DOCKERHUB_TOKEN }}
4949
-
5050
name: Build and push
5151
id: docker_build
52-
uses: docker/build-push-action@v4
52+
uses: docker/build-push-action@v5
5353
with:
5454
build-args: |
5555
BF_IMAGE=${{ env.REPOSITORY_NAME }}

.github/workflows/update-readme.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
shell: bash
1616
-
1717
name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
-
2020
name: Login to DockerHub
21-
uses: docker/login-action@v2
21+
uses: docker/login-action@v3
2222
with:
2323
username: ${{ secrets.DOCKERHUB_USERNAME }}
2424
password: ${{ secrets.DOCKERHUB_TOKEN }}

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM bfren/nginx:nginx1.24-5.0.16
1+
FROM bfren/nginx:nginx1.24-alpine3.18-6.0.0
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-webdav"
44

55
ARG BF_IMAGE
66
ARG BF_VERSION
77

8+
COPY ./overlay /
9+
810
ENV \
911
# set to "r" or "rw" (without quotes) to enable read-only / read-write access
10-
WEBDAV_ACCESS=r \
12+
BF_NGINX_WEBDAV_ACCESS=r \
1113
# set to "PUT DELETE MKCOL COPY MOVE" (or any variation, without quotes) to enable full write access
12-
WEBDAV_METHODS=off
13-
14-
COPY ./overlay /
14+
BF_NGINX_WEBDAV_METHODS=off
1515

1616
RUN bf-install

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ By default files are served read-only - change two environment variables to enab
2222

2323
| Variable | Values | Description | Default |
2424
| ---------------- | ----------- | ------------------------------------------------------------------------ | ------- |
25-
| `WEBDAV_ACCESS` | 'r' or 'rw' | Set to 'r' for read-only or 'rw' for read/write access (without quotes). | r |
26-
| `WEBDAV_METHODS` | string | For full write access set to 'PUT DELETE MKCOL COPY MOVE'. | off |
25+
| `NGINX_WEBDAV_ACCESS` | 'r' or 'rw' | Set to 'r' for read-only or 'rw' for read/write access (without quotes). | r |
26+
| `NGINX_WEBDAV_METHODS` | string | For full write access set to 'PUT DELETE MKCOL COPY MOVE'. | off |
2727

2828
## Licence
2929

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.1.10
1+
6.0.0

VERSION_MAJOR

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5
1+
6

VERSION_MINOR

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.1
1+
6.0

0 commit comments

Comments
 (0)