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)
|
VER=$(cat VERSION)
|
||||||
echo "VERSION=$VER" >> $GITHUB_ENV
|
echo "VERSION=$VER" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
|
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -26,6 +26,9 @@ jobs:
|
|||||||
VER=$(cat VERSION)
|
VER=$(cat VERSION)
|
||||||
echo "VERSION=$VER" >> $GITHUB_ENV
|
echo "VERSION=$VER" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
@ -40,7 +43,7 @@ jobs:
|
|||||||
- name: Test image
|
- name: Test image
|
||||||
run: |
|
run: |
|
||||||
docker images
|
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
|
docker ps -a
|
||||||
|
|
||||||
- name: Container scan
|
- name: Container scan
|
||||||
@ -65,6 +68,9 @@ jobs:
|
|||||||
VER=$(cat VERSION)
|
VER=$(cat VERSION)
|
||||||
echo "VERSION=$VER" >> $GITHUB_ENV
|
echo "VERSION=$VER" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
@ -81,6 +87,7 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }}
|
${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }}
|
||||||
${{ env.USER }}/${{ env.REPO }}:latest
|
${{ env.USER }}/${{ env.REPO }}:latest
|
@ -31,7 +31,7 @@ Runs a Nginx WebDav server in Docker
|
|||||||
### Environment variables
|
### Environment variables
|
||||||
| Variable | Required? | Definition | Example | Comments |
|
| 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 |
|
| WEBDAV_PASS | No | WebDav password | password1 | user AND pass need to be set for authentication to work |
|
||||||
|
|
||||||
### Ports
|
### Ports
|
||||||
|
Reference in New Issue
Block a user