Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
0975574f66 | |||
264cf6a576 | |||
39f83351ae | |||
4069c0b8ab | |||
149df92f62 | |||
18a481aefb |
3
.github/workflows/container_scan.yml
vendored
3
.github/workflows/container_scan.yml
vendored
@ -24,6 +24,9 @@ jobs:
|
||||
VER=$(cat VERSION)
|
||||
echo "VERSION=$VER" >> $GITHUB_ENV
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Build Docker Image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
|
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -26,6 +26,9 @@ jobs:
|
||||
VER=$(cat VERSION)
|
||||
echo "VERSION=$VER" >> $GITHUB_ENV
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Build Docker Image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
@ -40,7 +43,7 @@ jobs:
|
||||
- name: Test image
|
||||
run: |
|
||||
docker images
|
||||
docker run --name test-container --detach --env WEBDAV_USER=user1 --env WEBDAV_PASS=password1 --volume 'webdav:/var/www/webdav' ${USER}/${REPO}:${VERSION}
|
||||
docker run --name test-container --detach --env WEBDAV_USER=user --env WEBDAV_PASS=password1 --volume 'webdav:/var/www/webdav' ${USER}/${REPO}:${VERSION}
|
||||
docker ps -a
|
||||
|
||||
- name: Container scan
|
||||
@ -65,6 +68,9 @@ jobs:
|
||||
VER=$(cat VERSION)
|
||||
echo "VERSION=$VER" >> $GITHUB_ENV
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
@ -81,6 +87,7 @@ jobs:
|
||||
push: true
|
||||
context: .
|
||||
file: Dockerfile
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
tags: |
|
||||
${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }}
|
||||
${{ env.USER }}/${{ env.REPO }}:latest
|
@ -31,7 +31,7 @@ Runs a Nginx WebDav server in Docker
|
||||
### Environment variables
|
||||
| Variable | Required? | Definition | Example | Comments |
|
||||
|-------------|-----------|----------------------------------|----------------------------|--------------------------------------------------------------|
|
||||
| WEBDAV_USER | No | WebDav username | user1 | user AND pass need to be set for authentication to work |
|
||||
| WEBDAV_USER | No | WebDav username | user | user AND pass need to be set for authentication to work |
|
||||
| WEBDAV_PASS | No | WebDav password | password1 | user AND pass need to be set for authentication to work |
|
||||
|
||||
### Ports
|
||||
|
Reference in New Issue
Block a user