Compare commits
25 Commits
Author | SHA1 | Date | |
---|---|---|---|
407b794043 | |||
35c13a48d3 | |||
e3612164e3 | |||
e997ba39b8 | |||
be67b46f83 | |||
031296c727 | |||
ea6aa6f7fd | |||
c012d1f8d8 | |||
a75fd490ce | |||
dadfcfa306 | |||
ff4d33d36d | |||
688fcb4951 | |||
f8c6bb98ac | |||
14421c6a7e | |||
b48180621c | |||
0abfb59001 | |||
aa91ecf18b | |||
2f6693f42f | |||
7a2fd629c4 | |||
0975574f66 | |||
264cf6a576 | |||
39f83351ae | |||
4069c0b8ab | |||
149df92f62 | |||
18a481aefb |
9
.github/renovate.json
vendored
Normal file
9
.github/renovate.json
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:base"
|
||||||
|
],
|
||||||
|
"dependencyDashboard": true,
|
||||||
|
"dependencyDashboardTitle": "Renovate Dashboard",
|
||||||
|
"labels": ["renovatebot"]
|
||||||
|
}
|
43
.github/workflows/container_scan.yml
vendored
43
.github/workflows/container_scan.yml
vendored
@ -1,43 +0,0 @@
|
|||||||
name: Container scan on commit to master
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
env:
|
|
||||||
USER: loganmarchione
|
|
||||||
REPO: docker-webdav-nginx
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ubuntu_ci:
|
|
||||||
name: Build and scan
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Check out the codebase
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set variables
|
|
||||||
run: |
|
|
||||||
VER=$(cat VERSION)
|
|
||||||
echo "VERSION=$VER" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Build Docker Image
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
push: false
|
|
||||||
context: .
|
|
||||||
file: Dockerfile
|
|
||||||
load: true
|
|
||||||
tags: |
|
|
||||||
${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }}
|
|
||||||
${{ env.USER }}/${{ env.REPO }}:latest
|
|
||||||
|
|
||||||
- name: Container scan
|
|
||||||
uses: azure/container-scan@v0
|
|
||||||
with:
|
|
||||||
image-name: ${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }}
|
|
||||||
severity-threshold: CRITICAL
|
|
||||||
run-quality-checks: true
|
|
24
.github/workflows/main.yml
vendored
24
.github/workflows/main.yml
vendored
@ -6,6 +6,7 @@ on:
|
|||||||
- "[0-9]+.[0-9]+.[0-9]+"
|
- "[0-9]+.[0-9]+.[0-9]+"
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 5 * * 0"
|
- cron: "0 5 * * 0"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
USER: loganmarchione
|
USER: loganmarchione
|
||||||
@ -19,15 +20,18 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the codebase
|
- name: Check out the codebase
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set variables
|
- name: Set variables
|
||||||
run: |
|
run: |
|
||||||
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@v2
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
context: .
|
context: .
|
||||||
@ -40,7 +44,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
|
||||||
@ -58,29 +62,33 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the codebase
|
- name: Check out the codebase
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set variables
|
- name: Set variables
|
||||||
run: |
|
run: |
|
||||||
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@v2
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USER }}
|
username: ${{ secrets.DOCKER_HUB_USER }}
|
||||||
password: ${{ secrets.DOCKER_HUB_PASS }}
|
password: ${{ secrets.DOCKER_HUB_PASS }}
|
||||||
logout: true
|
logout: true
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:focal
|
FROM ubuntu:jammy
|
||||||
|
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ Runs a Nginx WebDav server in Docker
|
|||||||
- Image base: [Ubuntu](https://hub.docker.com/_/ubuntu)
|
- Image base: [Ubuntu](https://hub.docker.com/_/ubuntu)
|
||||||
- Init system: N/A
|
- Init system: N/A
|
||||||
- Application: [Nginx](https://nginx.org/)
|
- Application: [Nginx](https://nginx.org/)
|
||||||
|
- Architecture: `linux/amd64,linux/arm64,linux/arm/v7`
|
||||||
|
|
||||||
## Explanation
|
## Explanation
|
||||||
|
|
||||||
@ -31,7 +32,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