added ci/cd
All checks were successful
/ build-docker-image (push) Successful in 1m3s

This commit is contained in:
2025-01-18 19:25:56 +00:00
parent f8ee71f21e
commit cdd4ef5500
4 changed files with 39 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
on:
push:
paths:
- "docker/**"
- ".gitea/**"
schedule:
- cron: "0 02 * * *"
jobs:
build-docker-image:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Log in to git.limbosolutions.com docker registry
uses: docker/login-action@v3
with:
registry: git.limbosolutions.com
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
- name: Build and push Docker images
id: push
uses: docker/build-push-action@v6
with:
context: .
file: ${{gitea.workspace}}/docker/Dockerfile
push: true
tags: git.limbosolutions.com/kb/nextcloud

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"cSpell.words": [
"nextcloud"
]
}

View File

@@ -14,7 +14,7 @@ services:
- cloud_limbosolutions_com_private - cloud_limbosolutions_com_private
restart: unless-stopped restart: unless-stopped
app: app:
image: nextcloud-smbclient:30.0 image: git.limbosolutions.com/kb/nextcloud
container_name: cloud_limbosolutions_com-nextcloud container_name: cloud_limbosolutions_com-nextcloud
links: links:
- db - db

View File

@@ -1,3 +1,2 @@
#image name : nextcloud-smbclient:30.0 FROM nextcloud:30
FROM nextcloud:30.0
RUN apt update;apt install -y smbclient libsmbclient-dev;pecl install smbclient;echo "extension=smbclient.so" >> /usr/local/etc/php/conf.d/nextcloud.ini; echo "extension=smbclient.so" >> /usr/local/etc/php.ini RUN apt update;apt install -y smbclient libsmbclient-dev;pecl install smbclient;echo "extension=smbclient.so" >> /usr/local/etc/php/conf.d/nextcloud.ini; echo "extension=smbclient.so" >> /usr/local/etc/php.ini