feat: initial commit
Some checks failed
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Has been cancelled

This commit is contained in:
2025-02-24 12:56:15 +01:00
commit b66d02c1e4
5 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
name: Build Docker Image
on:
push:
branches:
- '**' # matches every branch
- '!prod'
jobs:
Build-Docker-Image:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- run: docker build . -t nextcloud-test
- run: docker rmi nextcloud-test

View File

@@ -0,0 +1,18 @@
name: Build and Push Docker Image
on:
push:
branches:
- prod
jobs:
Build-And-Push-Docker-Image:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- run: docker login git.wundenbergs.de -u tim -p ${{ secrets.DOCKER_GITEA_TOKEN }}
- run: docker build . -t git.wundenbergs.de/x/nextcloud:latest -t git.wundenbergs.de/x/nextcloud:$GITHUB_SHA
- run: docker push git.wundenbergs.de/x/nextcloud:latest
- run: docker push git.wundenbergs.de/x/nextcloud:$GITHUB_SHA
- run: docker rmi git.wundenbergs.de/x/nextcloud:latest git.wundenbergs.de/x/nextcloud:$GITHUB_SHA

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM nextcloud:30.0.6
ENV PHP_UPLOAD_LIMIT: 20G
RUN a2enmod ssl
COPY ./virtualhost.conf /etc/apache2/sites-enabled/000-default.conf

3
Readme.md Normal file
View File

@@ -0,0 +1,3 @@
# Custom Nextcloud Image
This image is a Wrapper around the default nextcloud image to enable SSL Certificates.

24
virtualhost.conf Normal file
View File

@@ -0,0 +1,24 @@
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# ServerName cloud.example.com
SSLEngine on
SSLCertificateFile /ssl/nextcloud.crt
SSLCertificateKeyFile /ssl/nextcloud.key
DocumentRoot /var/www/html
# <Directory /var/www/html>
# Require all granted
# AllowOverride All
# Options FollowSymLinks MultiViews
# </Directory>
#
# ErrorLog /var/log/apache2/error.log
# CustomLog /var/log/apache2/access.log combined
</VirtualHost>