Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
f86a6d83f0 | |||
58df557883 | |||
fb7d5f5b1e | |||
a47abc2d9f | |||
04063c496a | |||
7f25c4943a | |||
b7bb809d68 | |||
79d5310d5d | |||
72a8d74e35 | |||
7006125b0b | |||
aa9f917d4a | |||
c17c2c3b73 | |||
540117be56 | |||
f3e0b7561d | |||
dce7230498 | |||
2d1ee0afa0 | |||
6c910626f8 | |||
5b7aaf23d6 | |||
8cc044ab01 | |||
cbb67c7319 |
11
.github/renovate.json
vendored
11
.github/renovate.json
vendored
@ -5,5 +5,14 @@
|
|||||||
],
|
],
|
||||||
"dependencyDashboard": true,
|
"dependencyDashboard": true,
|
||||||
"dependencyDashboardTitle": "Renovate Dashboard",
|
"dependencyDashboardTitle": "Renovate Dashboard",
|
||||||
"labels": ["renovatebot"]
|
"labels": ["renovatebot"],
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"managers": ["github-actions"],
|
||||||
|
"matchUpdateTypes": ["patch"],
|
||||||
|
"automerge": true,
|
||||||
|
"automergeType": "pr",
|
||||||
|
"platformAutomerge": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
5
.github/trivy.yaml
vendored
Normal file
5
.github/trivy.yaml
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
format: table
|
||||||
|
severity:
|
||||||
|
- CRITICAL
|
||||||
|
vulnerability:
|
||||||
|
ignore-unfixed: true
|
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
@ -13,7 +13,7 @@ env:
|
|||||||
REPO: docker-webdav-nginx
|
REPO: docker-webdav-nginx
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu_ci:
|
ci:
|
||||||
name: Build and test
|
name: Build and test
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -31,7 +31,7 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
context: .
|
context: .
|
||||||
@ -47,17 +47,32 @@ jobs:
|
|||||||
docker run --name test-container --detach --env WEBDAV_USER=user --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 with Dockle
|
||||||
uses: azure/container-scan@v0
|
uses: goodwithtech/dockle-action@0.1.0
|
||||||
with:
|
with:
|
||||||
image-name: ${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }}
|
image: '${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }}'
|
||||||
severity-threshold: CRITICAL
|
format: 'list'
|
||||||
run-quality-checks: true
|
exit-code: '1'
|
||||||
|
exit-level: 'warn'
|
||||||
|
ignore: 'CIS-DI-0001'
|
||||||
|
|
||||||
ubuntu_cd:
|
- name: Container scan with hadolint
|
||||||
|
uses: hadolint/hadolint-action@v3.1.0
|
||||||
|
with:
|
||||||
|
failure-threshold: error
|
||||||
|
ignore: DL3008,DL3018
|
||||||
|
|
||||||
|
- name: Container scan with Trivy
|
||||||
|
uses: aquasecurity/trivy-action@0.9.2
|
||||||
|
with:
|
||||||
|
scan-type: 'image'
|
||||||
|
image-ref: '${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }}'
|
||||||
|
trivy-config: ./github/trivy.yaml
|
||||||
|
|
||||||
|
cd:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
|
|
||||||
needs: ubuntu_ci
|
needs: ci
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -83,7 +98,7 @@ jobs:
|
|||||||
logout: true
|
logout: true
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: .
|
context: .
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:jammy
|
FROM debian:11-slim
|
||||||
|
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ LABEL \
|
|||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get -y install --no-install-recommends \
|
||||||
apache2-utils \
|
apache2-utils \
|
||||||
netcat \
|
netcat \
|
||||||
nginx-extras && \
|
nginx-extras && \
|
||||||
@ -25,7 +25,9 @@ EXPOSE 80
|
|||||||
|
|
||||||
VOLUME [ "/var/www/webdav" ]
|
VOLUME [ "/var/www/webdav" ]
|
||||||
|
|
||||||
COPY password.sh password.sh
|
COPY password.sh /
|
||||||
|
|
||||||
|
COPY VERSION /
|
||||||
|
|
||||||
COPY webdav.conf /etc/nginx/sites-enabled/webdav
|
COPY webdav.conf /etc/nginx/sites-enabled/webdav
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
Runs a Nginx WebDav server in Docker
|
Runs a Nginx WebDav server in Docker
|
||||||
- Source code: [GitHub](https://github.com/loganmarchione/docker-webdav-nginx)
|
- Source code: [GitHub](https://github.com/loganmarchione/docker-webdav-nginx)
|
||||||
- Docker container: [Docker Hub](https://hub.docker.com/r/loganmarchione/docker-webdav-nginx)
|
- Docker container: [Docker Hub](https://hub.docker.com/r/loganmarchione/docker-webdav-nginx)
|
||||||
- Image base: [Ubuntu](https://hub.docker.com/_/ubuntu)
|
- Image base: [Debian](https://hub.docker.com/_/debian)
|
||||||
- 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`
|
- Architecture: `linux/amd64,linux/arm64,linux/arm/v7`
|
||||||
|
Reference in New Issue
Block a user