Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c08cf6662 | ||
|
|
dd988f75bb | ||
|
|
19cbc76486 | ||
|
|
6a64bcb9e9 | ||
|
|
b043ac3783 | ||
|
|
7ecef0cd4e | ||
|
|
8a1e35145c | ||
|
|
20769287ce | ||
|
|
88addae544 | ||
|
|
bd93f6a971 |
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.25.10
|
||||
go 1.25.7
|
||||
|
||||
require github.com/vektra/mockery/v2 v2.53.5
|
||||
@@ -0,0 +1,233 @@
|
||||
name: ocis-setup
|
||||
description: Start an oCIS instance with optional services (antivirus, email, tika, ociswrapper)
|
||||
|
||||
inputs:
|
||||
ocis-version:
|
||||
description: oCIS release version (e.g. 8.0.1) or "latest" — ignored when ocis-binary is set
|
||||
required: false
|
||||
default: latest
|
||||
ocis-binary:
|
||||
description: Path to a pre-built oCIS binary; skips download when provided
|
||||
required: false
|
||||
default: ""
|
||||
admin-password:
|
||||
description: Admin user password
|
||||
required: false
|
||||
default: admin
|
||||
log-level:
|
||||
description: oCIS log level
|
||||
required: false
|
||||
default: error
|
||||
demo-users:
|
||||
description: Create demo users (IDM_CREATE_DEMO_USERS=true)
|
||||
required: false
|
||||
default: "false"
|
||||
wrapper:
|
||||
description: Start ociswrapper on :5200 for dynamic reconfiguration
|
||||
required: false
|
||||
default: "true"
|
||||
tika:
|
||||
description: Start Apache Tika on :9998 for full-text search
|
||||
required: false
|
||||
default: "false"
|
||||
email:
|
||||
description: Start Mailpit SMTP (:1025) and API (:8025)
|
||||
required: false
|
||||
default: "false"
|
||||
antivirus:
|
||||
description: Start ClamAV on :3310 and enable postprocessing
|
||||
required: false
|
||||
default: "false"
|
||||
extra-server-env:
|
||||
description: JSON object of additional env vars to pass to the oCIS server
|
||||
required: false
|
||||
default: "{}"
|
||||
|
||||
outputs:
|
||||
ocis-url:
|
||||
description: oCIS instance URL
|
||||
value: https://localhost:9200
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
# -------------------------------------------------------------------------
|
||||
# 1. Install oCIS binary (skip when a pre-built binary is provided)
|
||||
# -------------------------------------------------------------------------
|
||||
- name: Install oCIS binary from release
|
||||
if: inputs.ocis-binary == ''
|
||||
shell: bash
|
||||
env:
|
||||
OCIS_VERSION: ${{ inputs.ocis-version }}
|
||||
run: ${{ github.action_path }}/scripts/install-ocis.sh
|
||||
|
||||
- name: Use pre-built oCIS binary
|
||||
if: inputs.ocis-binary != ''
|
||||
shell: bash
|
||||
run: |
|
||||
sudo cp "${{ inputs.ocis-binary }}" /usr/local/bin/ocis
|
||||
sudo chmod +x /usr/local/bin/ocis
|
||||
echo "Using pre-built oCIS: $(ocis --version 2>&1 | head -1)"
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# 2. Build ociswrapper (always — it is always used as the process launcher)
|
||||
# -------------------------------------------------------------------------
|
||||
- name: Build ociswrapper from source (when using release binary)
|
||||
if: inputs.ocis-binary == ''
|
||||
shell: bash
|
||||
env:
|
||||
OCIS_VERSION: ${{ inputs.ocis-version }}
|
||||
run: ${{ github.action_path }}/scripts/install-wrapper.sh
|
||||
|
||||
- name: Build ociswrapper from local source (when using pre-built binary)
|
||||
if: inputs.ocis-binary != ''
|
||||
shell: bash
|
||||
working-directory: ${{ github.workspace }}/tests/ociswrapper
|
||||
run: |
|
||||
GOWORK=off go build -o /tmp/ociswrapper .
|
||||
sudo mv /tmp/ociswrapper /usr/local/bin/ociswrapper
|
||||
echo "ociswrapper built from local source."
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# 3. Optional services
|
||||
# -------------------------------------------------------------------------
|
||||
- name: Start Mailpit (email)
|
||||
if: inputs.email == 'true'
|
||||
shell: bash
|
||||
run: |
|
||||
docker run -d --name mailpit --network host axllent/mailpit:v1.22.3
|
||||
timeout 60 bash -c 'until curl -sf http://localhost:8025/api/v1/messages; do sleep 1; done'
|
||||
echo "mailpit ready."
|
||||
|
||||
- name: Start ClamAV (antivirus)
|
||||
if: inputs.antivirus == 'true'
|
||||
shell: bash
|
||||
run: |
|
||||
docker run -d --name clamav --network host owncloudci/clamavd
|
||||
echo "Waiting for ClamAV on :3310 (may take up to 5 min for virus DB download)..."
|
||||
timeout 300 bash -c '
|
||||
while true; do
|
||||
if (echo "" | nc -z localhost 3310) 2>/dev/null || \
|
||||
python3 -c "import socket,sys; s=socket.create_connection((\"localhost\",3310),2); s.close()" 2>/dev/null; then
|
||||
break
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
'
|
||||
echo "clamav ready."
|
||||
|
||||
- name: Start Tika (full-text search)
|
||||
if: inputs.tika == 'true'
|
||||
shell: bash
|
||||
run: |
|
||||
docker run -d --name tika --network host apache/tika:3.2.2.0-full
|
||||
timeout 120 bash -c 'until curl -sf http://localhost:9998; do sleep 2; done'
|
||||
echo "tika ready."
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# 4. Install test-runner dependencies (must happen before oCIS starts —
|
||||
# apt-get pulls in libcurl4-openssl-dev which replaces the system libcurl
|
||||
# and would kill the running oCIS process if installed afterwards)
|
||||
# -------------------------------------------------------------------------
|
||||
- name: Install libcurl 8.12.0 build dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y \
|
||||
libssl-dev libnghttp2-dev libpsl-dev libldap-dev libssh-dev zlib1g-dev libvips-dev
|
||||
|
||||
- name: Cache libcurl 8.12.0
|
||||
id: cache-libcurl
|
||||
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
||||
with:
|
||||
path: /opt/libcurl
|
||||
key: libcurl-8.12.0-${{ runner.os }}
|
||||
|
||||
- name: Compile libcurl 8.12.0 from source
|
||||
if: steps.cache-libcurl.outputs.cache-hit != 'true'
|
||||
shell: bash
|
||||
run: |
|
||||
cd /tmp
|
||||
curl -sLO https://curl.se/download/curl-8.12.0.tar.gz
|
||||
tar xzf curl-8.12.0.tar.gz
|
||||
cd curl-8.12.0
|
||||
./configure --with-ssl --with-zlib --with-nghttp2 --prefix=/opt/libcurl \
|
||||
--enable-versioned-symbols --silent
|
||||
make -j$(nproc) --silent
|
||||
sudo make install --silent
|
||||
|
||||
- name: Restore libcurl ldconfig
|
||||
shell: bash
|
||||
run: |
|
||||
echo "/opt/libcurl/lib" | sudo tee /etc/ld.so.conf.d/libcurl-8.conf
|
||||
sudo ldconfig
|
||||
/opt/libcurl/bin/curl --version | head -1
|
||||
php -r '
|
||||
$v = curl_version()["version"];
|
||||
echo "PHP curl: $v\n";
|
||||
if (version_compare($v, "8.12.0", "<")) {
|
||||
fwrite(STDERR, "FATAL: PHP sees libcurl $v, need >= 8.12.0\n");
|
||||
exit(1);
|
||||
}
|
||||
'
|
||||
|
||||
- name: Install Composer dependencies
|
||||
shell: bash
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
COMPOSER_NO_INTERACTION=1 COMPOSER_NO_AUDIT=1 composer install --no-progress
|
||||
COMPOSER_NO_INTERACTION=1 COMPOSER_NO_AUDIT=1 \
|
||||
composer bin behat install --no-progress
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# 6. Init oCIS + copy config files
|
||||
# -------------------------------------------------------------------------
|
||||
- name: Init oCIS
|
||||
shell: bash
|
||||
env:
|
||||
OCIS_ACTION_PATH: ${{ github.action_path }}
|
||||
run: ${{ github.action_path }}/scripts/init-ocis.sh
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# 7. Start oCIS via ociswrapper
|
||||
# -------------------------------------------------------------------------
|
||||
- name: Start oCIS
|
||||
shell: bash
|
||||
env:
|
||||
ADMIN_PASSWORD: ${{ inputs.admin-password }}
|
||||
LOG_LEVEL: ${{ inputs.log-level }}
|
||||
DEMO_USERS: ${{ inputs.demo-users }}
|
||||
ANTIVIRUS_ENABLED: ${{ inputs.antivirus }}
|
||||
EMAIL_ENABLED: ${{ inputs.email }}
|
||||
TIKA_ENABLED: ${{ inputs.tika }}
|
||||
EXTRA_SERVER_ENV: ${{ inputs.extra-server-env }}
|
||||
OCIS_REPO_ROOT: ${{ github.workspace }}
|
||||
run: ${{ github.action_path }}/scripts/start-ocis.sh
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# 8. Wait for oCIS to be healthy
|
||||
# -------------------------------------------------------------------------
|
||||
- name: Wait for oCIS
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Waiting for oCIS at https://localhost:9200..."
|
||||
timeout 300 bash -c '
|
||||
until curl -sk -uadmin:admin https://localhost:9200/graph/v1.0/users/admin \
|
||||
-w "%{http_code}" -o /dev/null 2>/dev/null | grep -q "200"; do
|
||||
sleep 2
|
||||
done
|
||||
' || (echo "=== oCIS failed to start ===" && \
|
||||
cat /tmp/ocis-server.log 2>/dev/null | tail -50 && exit 1)
|
||||
echo "ocis ready."
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# 9. Stop oCIS (always runs — cleans up PID and log on both success and failure)
|
||||
# -------------------------------------------------------------------------
|
||||
- name: Stop oCIS
|
||||
if: always()
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ -f /tmp/ocis-wrapper.pid ]]; then
|
||||
kill "$(cat /tmp/ocis-wrapper.pid)" 2>/dev/null || true
|
||||
rm -f /tmp/ocis-wrapper.pid /tmp/ocis-server.log
|
||||
fi
|
||||
File renamed without changes.
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Initialize oCIS config directory and copy required config files.
|
||||
# OCIS_ACTION_PATH: path to the action directory (contains config/)
|
||||
# The action is used from within a repo checkout so GITHUB_WORKSPACE is set.
|
||||
|
||||
CONFIG_DIR="${HOME}/.ocis/config"
|
||||
mkdir -p "$CONFIG_DIR"
|
||||
|
||||
ocis init --insecure true
|
||||
|
||||
# app-registry.yaml: bundled with this action so it works without a repo checkout
|
||||
cp "${OCIS_ACTION_PATH}/config/app-registry.yaml" "${CONFIG_DIR}/app-registry.yaml"
|
||||
|
||||
echo "oCIS config initialized at ${CONFIG_DIR}"
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# OCIS_VERSION: "latest" or a specific version like "8.0.1"
|
||||
VERSION="${OCIS_VERSION:-latest}"
|
||||
|
||||
if [[ "$VERSION" == "latest" ]]; then
|
||||
VERSION=$(curl -s https://api.github.com/repos/owncloud/ocis/releases/latest \
|
||||
| python3 -c "import sys,json; print(json.load(sys.stdin)['tag_name'].lstrip('v'))")
|
||||
fi
|
||||
|
||||
# Write resolved version so install-wrapper.sh uses the same tag without a second API call.
|
||||
echo "$VERSION" > /tmp/ocis-resolved-version
|
||||
|
||||
echo "Installing oCIS $VERSION..."
|
||||
ARCH=$(uname -m)
|
||||
case "$ARCH" in
|
||||
x86_64) ARCH_SUFFIX="amd64" ;;
|
||||
aarch64) ARCH_SUFFIX="arm64" ;;
|
||||
*) echo "Unsupported arch: $ARCH"; exit 1 ;;
|
||||
esac
|
||||
|
||||
BASE_URL="https://github.com/owncloud/ocis/releases/download/v${VERSION}"
|
||||
BINARY="ocis-${VERSION}-linux-${ARCH_SUFFIX}"
|
||||
|
||||
curl -sLo /tmp/ocis "${BASE_URL}/${BINARY}"
|
||||
curl -sLo /tmp/ocis.sha256 "${BASE_URL}/${BINARY}.sha256"
|
||||
|
||||
# sha256 file contains "HASH filename" — rewrite to match our local path
|
||||
HASH=$(awk '{print $1}' /tmp/ocis.sha256)
|
||||
echo "${HASH} /tmp/ocis" | sha256sum -c -
|
||||
|
||||
chmod +x /tmp/ocis
|
||||
sudo mv /tmp/ocis /usr/local/bin/ocis
|
||||
|
||||
echo "oCIS $(ocis --version 2>&1 | head -1) installed."
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# ociswrapper is not published as a release artifact.
|
||||
# Sparse-clone only tests/ociswrapper/ from the matching tag and build it.
|
||||
VERSION="${OCIS_VERSION:-latest}"
|
||||
|
||||
if [[ "$VERSION" == "latest" ]]; then
|
||||
if [[ -f /tmp/ocis-resolved-version ]]; then
|
||||
VERSION=$(cat /tmp/ocis-resolved-version)
|
||||
else
|
||||
VERSION=$(curl -s https://api.github.com/repos/owncloud/ocis/releases/latest \
|
||||
| python3 -c "import sys,json; print(json.load(sys.stdin)['tag_name'].lstrip('v'))")
|
||||
fi
|
||||
fi
|
||||
|
||||
CLONE_DIR="/tmp/ocis-src-wrapper"
|
||||
rm -rf "$CLONE_DIR"
|
||||
|
||||
echo "Sparse-cloning ociswrapper from tag v${VERSION}..."
|
||||
git clone --depth=1 --filter=blob:none --sparse \
|
||||
--branch "v${VERSION}" \
|
||||
https://github.com/owncloud/ocis.git "$CLONE_DIR"
|
||||
|
||||
cd "$CLONE_DIR"
|
||||
git sparse-checkout set tests/ociswrapper
|
||||
|
||||
cd tests/ociswrapper
|
||||
echo "Building ociswrapper..."
|
||||
GOWORK=off go build -o /tmp/ociswrapper .
|
||||
sudo mv /tmp/ociswrapper /usr/local/bin/ociswrapper
|
||||
|
||||
echo "ociswrapper installed at $(which ociswrapper)"
|
||||
rm -rf "$CLONE_DIR"
|
||||
+137
@@ -0,0 +1,137 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Start oCIS via ociswrapper.
|
||||
# ociswrapper wraps the ocis binary and exposes HTTP API on :5200
|
||||
# for dynamic reconfiguration (env var changes at runtime).
|
||||
#
|
||||
# Environment variables set by action.yml:
|
||||
# ADMIN_PASSWORD, LOG_LEVEL, DEMO_USERS
|
||||
# ANTIVIRUS_ENABLED, EMAIL_ENABLED, TIKA_ENABLED
|
||||
# EXTRA_SERVER_ENV (JSON object)
|
||||
# OCIS_REPO_ROOT (GITHUB_WORKSPACE — needed for config file paths)
|
||||
|
||||
OCIS_URL="https://localhost:9200"
|
||||
CONFIG_DIR="${HOME}/.ocis/config"
|
||||
|
||||
# Generate a throw-away fontsMap.json pointing at the font shipped in the repo.
|
||||
# Tests that render thumbnails from text files need this.
|
||||
REPO_ROOT="${OCIS_REPO_ROOT:-${GITHUB_WORKSPACE}}"
|
||||
FONT_PATH="${REPO_ROOT}/tests/config/drone/NotoSans.ttf"
|
||||
FONTMAP=$(mktemp /tmp/fontsMap-XXXXXX.json)
|
||||
echo "{\"defaultFont\": \"${FONT_PATH}\"}" > "$FONTMAP"
|
||||
|
||||
declare -A SERVER_ENV=(
|
||||
[OCIS_URL]="$OCIS_URL"
|
||||
[OCIS_CONFIG_DIR]="$CONFIG_DIR"
|
||||
[STORAGE_USERS_DRIVER]="ocis"
|
||||
[PROXY_ENABLE_BASIC_AUTH]="true"
|
||||
[OCIS_LOG_LEVEL]="${LOG_LEVEL:-error}"
|
||||
[IDM_CREATE_DEMO_USERS]="${DEMO_USERS:-false}"
|
||||
[IDM_ADMIN_PASSWORD]="${ADMIN_PASSWORD:-admin}"
|
||||
[FRONTEND_SEARCH_MIN_LENGTH]="2"
|
||||
[OCIS_ASYNC_UPLOADS]="true"
|
||||
[OCIS_EVENTS_ENABLE_TLS]="false"
|
||||
[NATS_NATS_HOST]="0.0.0.0"
|
||||
[NATS_NATS_PORT]="9233"
|
||||
[MICRO_REGISTRY_ADDRESS]="127.0.0.1:9233"
|
||||
[OCIS_JWT_SECRET]="some-ocis-jwt-secret"
|
||||
[EVENTHISTORY_STORE]="memory"
|
||||
[OCIS_TRANSLATION_PATH]="${REPO_ROOT}/tests/config/translations"
|
||||
[WEB_UI_CONFIG_FILE]="${REPO_ROOT}/tests/config/drone/ocis-config.json"
|
||||
[THUMBNAILS_TXT_FONTMAP_FILE]="$FONTMAP"
|
||||
[SEARCH_EXTRACTOR_TYPE]="basic"
|
||||
[FRONTEND_FULL_TEXT_SEARCH_ENABLED]="false"
|
||||
# debug addresses
|
||||
[ACTIVITYLOG_DEBUG_ADDR]="0.0.0.0:9197"
|
||||
[APP_PROVIDER_DEBUG_ADDR]="0.0.0.0:9165"
|
||||
[APP_REGISTRY_DEBUG_ADDR]="0.0.0.0:9243"
|
||||
[AUTH_BASIC_DEBUG_ADDR]="0.0.0.0:9147"
|
||||
[AUTH_MACHINE_DEBUG_ADDR]="0.0.0.0:9167"
|
||||
[AUTH_SERVICE_DEBUG_ADDR]="0.0.0.0:9198"
|
||||
[CLIENTLOG_DEBUG_ADDR]="0.0.0.0:9260"
|
||||
[EVENTHISTORY_DEBUG_ADDR]="0.0.0.0:9270"
|
||||
[FRONTEND_DEBUG_ADDR]="0.0.0.0:9141"
|
||||
[GATEWAY_DEBUG_ADDR]="0.0.0.0:9143"
|
||||
[GRAPH_DEBUG_ADDR]="0.0.0.0:9124"
|
||||
[GROUPS_DEBUG_ADDR]="0.0.0.0:9161"
|
||||
[IDM_DEBUG_ADDR]="0.0.0.0:9239"
|
||||
[IDP_DEBUG_ADDR]="0.0.0.0:9134"
|
||||
[INVITATIONS_DEBUG_ADDR]="0.0.0.0:9269"
|
||||
[NATS_DEBUG_ADDR]="0.0.0.0:9234"
|
||||
[OCDAV_DEBUG_ADDR]="0.0.0.0:9163"
|
||||
[OCM_DEBUG_ADDR]="0.0.0.0:9281"
|
||||
[OCS_DEBUG_ADDR]="0.0.0.0:9114"
|
||||
[POSTPROCESSING_DEBUG_ADDR]="0.0.0.0:9255"
|
||||
[PROXY_DEBUG_ADDR]="0.0.0.0:9205"
|
||||
[SEARCH_DEBUG_ADDR]="0.0.0.0:9224"
|
||||
[SETTINGS_DEBUG_ADDR]="0.0.0.0:9194"
|
||||
[SHARING_DEBUG_ADDR]="0.0.0.0:9151"
|
||||
[SSE_DEBUG_ADDR]="0.0.0.0:9139"
|
||||
[STORAGE_PUBLICLINK_DEBUG_ADDR]="0.0.0.0:9179"
|
||||
[STORAGE_SHARES_DEBUG_ADDR]="0.0.0.0:9156"
|
||||
[STORAGE_SYSTEM_DEBUG_ADDR]="0.0.0.0:9217"
|
||||
[STORAGE_USERS_DEBUG_ADDR]="0.0.0.0:9159"
|
||||
[THUMBNAILS_DEBUG_ADDR]="0.0.0.0:9189"
|
||||
[USERLOG_DEBUG_ADDR]="0.0.0.0:9214"
|
||||
[USERS_DEBUG_ADDR]="0.0.0.0:9145"
|
||||
[WEB_DEBUG_ADDR]="0.0.0.0:9104"
|
||||
[WEBDAV_DEBUG_ADDR]="0.0.0.0:9119"
|
||||
[WEBFINGER_DEBUG_ADDR]="0.0.0.0:9279"
|
||||
)
|
||||
|
||||
# Antivirus
|
||||
if [[ "${ANTIVIRUS_ENABLED:-false}" == "true" ]]; then
|
||||
SERVER_ENV[ANTIVIRUS_SCANNER_TYPE]="clamav"
|
||||
SERVER_ENV[ANTIVIRUS_CLAMAV_SOCKET]="tcp://localhost:3310"
|
||||
SERVER_ENV[POSTPROCESSING_STEPS]="virusscan"
|
||||
SERVER_ENV[OCIS_ADD_RUN_SERVICES]="antivirus"
|
||||
SERVER_ENV[ANTIVIRUS_DEBUG_ADDR]="0.0.0.0:9277"
|
||||
fi
|
||||
|
||||
# Email (notifications service)
|
||||
if [[ "${EMAIL_ENABLED:-false}" == "true" ]]; then
|
||||
SERVER_ENV[OCIS_ADD_RUN_SERVICES]="${SERVER_ENV[OCIS_ADD_RUN_SERVICES]:+${SERVER_ENV[OCIS_ADD_RUN_SERVICES]},}notifications"
|
||||
SERVER_ENV[NOTIFICATIONS_SMTP_HOST]="localhost"
|
||||
SERVER_ENV[NOTIFICATIONS_SMTP_PORT]="1025"
|
||||
SERVER_ENV[NOTIFICATIONS_SMTP_INSECURE]="true"
|
||||
SERVER_ENV[NOTIFICATIONS_SMTP_SENDER]="ownCloud <noreply@example.com>"
|
||||
SERVER_ENV[NOTIFICATIONS_DEBUG_ADDR]="0.0.0.0:9174"
|
||||
fi
|
||||
|
||||
# Tika (full-text search)
|
||||
if [[ "${TIKA_ENABLED:-false}" == "true" ]]; then
|
||||
SERVER_ENV[FRONTEND_FULL_TEXT_SEARCH_ENABLED]="true"
|
||||
SERVER_ENV[SEARCH_EXTRACTOR_TYPE]="tika"
|
||||
SERVER_ENV[SEARCH_EXTRACTOR_TIKA_TIKA_URL]="http://localhost:9998"
|
||||
SERVER_ENV[SEARCH_EXTRACTOR_CS3SOURCE_INSECURE]="true"
|
||||
fi
|
||||
|
||||
# Extra env vars from JSON input — use null-delimited records to handle values with '=' or newlines
|
||||
if [[ -n "${EXTRA_SERVER_ENV:-}" && "${EXTRA_SERVER_ENV}" != "{}" ]]; then
|
||||
while IFS=$'\x01' read -r -d $'\x00' key val; do
|
||||
SERVER_ENV["$key"]="$val"
|
||||
done < <(echo "$EXTRA_SERVER_ENV" | python3 -c "
|
||||
import sys, json
|
||||
d = json.load(sys.stdin)
|
||||
for k, v in d.items():
|
||||
sys.stdout.buffer.write(k.encode() + b'\x01' + v.encode() + b'\x00')
|
||||
")
|
||||
fi
|
||||
|
||||
# Build env for the subprocess
|
||||
ENV_ARGS=()
|
||||
for key in "${!SERVER_ENV[@]}"; do
|
||||
ENV_ARGS+=("${key}=${SERVER_ENV[$key]}")
|
||||
done
|
||||
|
||||
echo "Starting ociswrapper + oCIS server..."
|
||||
env "${ENV_ARGS[@]}" ociswrapper serve \
|
||||
--bin /usr/local/bin/ocis \
|
||||
--url "$OCIS_URL" \
|
||||
--admin-username admin \
|
||||
--admin-password "${ADMIN_PASSWORD:-admin}" \
|
||||
> /tmp/ocis-server.log 2>&1 &
|
||||
|
||||
echo $! > /tmp/ocis-wrapper.pid
|
||||
echo "ociswrapper started (PID $(cat /tmp/ocis-wrapper.pid)), log: /tmp/ocis-server.log"
|
||||
@@ -0,0 +1,44 @@
|
||||
name: ocis-test
|
||||
description: Run oCIS Behat acceptance tests against a running oCIS instance
|
||||
|
||||
inputs:
|
||||
suite:
|
||||
description: Behat suite(s) to run, comma-separated (e.g. apiGraph or apiAntivirus,apiSettings)
|
||||
required: true
|
||||
ocis-url:
|
||||
description: oCIS instance URL
|
||||
required: false
|
||||
default: https://localhost:9200
|
||||
expected-failures-file:
|
||||
description: Path to expected failures markdown (relative to repo root)
|
||||
required: false
|
||||
default: ""
|
||||
acceptance-test-type:
|
||||
description: Test type passed as ACCEPTANCE_TEST_TYPE (api or core-api)
|
||||
required: false
|
||||
default: api
|
||||
with-remote-php:
|
||||
description: Include remote.php expected failures (WITH_REMOTE_PHP)
|
||||
required: false
|
||||
default: "false"
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Run ${{ inputs.suite }}
|
||||
shell: bash
|
||||
working-directory: ${{ github.workspace }}
|
||||
env:
|
||||
BEHAT_SUITES: ${{ inputs.suite }}
|
||||
TEST_SERVER_URL: ${{ inputs.ocis-url }}
|
||||
OCIS_WRAPPER_URL: http://localhost:5200
|
||||
ACCEPTANCE_TEST_TYPE: ${{ inputs.acceptance-test-type }}
|
||||
WITH_REMOTE_PHP: ${{ inputs.with-remote-php }}
|
||||
EXPECTED_FAILURES_FILE: ${{ inputs.expected-failures-file }}
|
||||
STORAGE_DRIVER: ocis
|
||||
UPLOAD_DELETE_WAIT_TIME: "0"
|
||||
EMAIL_HOST: localhost
|
||||
EMAIL_PORT: "8025"
|
||||
# Filter tags mirror run-github.py logic
|
||||
BEHAT_FILTER_TAGS: ${{ inputs.acceptance-test-type == 'core-api' && '~@skipOnGraph&&~@skipOnOcis-OCIS-Storage' || '~@skip&&~@skipOnGraph&&~@skipOnOcis-OCIS-Storage' }}
|
||||
run: make test-acceptance-api
|
||||
+14
-60
@@ -1,73 +1,27 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: gomod
|
||||
- package-ecosystem: "gomod"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
interval: "daily"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: composer
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
|
||||
- package-ecosystem: npm
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/services/idp"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: docker
|
||||
- package-ecosystem: "docker"
|
||||
directories:
|
||||
- "/"
|
||||
- "/ocis/docker"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
|
||||
- package-ecosystem: github-actions
|
||||
directory: "/"
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/" # Location of package manifests
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
interval: "weekly"
|
||||
|
||||
@@ -2,6 +2,8 @@ name: Acceptance Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- .github/actions/**
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -15,7 +17,7 @@ jobs:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -151,7 +153,7 @@ jobs:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -227,7 +229,7 @@ jobs:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -267,7 +269,7 @@ jobs:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -340,35 +342,26 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- suite: part-1
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 1"
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 1"
|
||||
- suite: part-2
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 2"
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 2"
|
||||
- suite: part-3
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 3"
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 3"
|
||||
- suite: part-4
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 4"
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 4"
|
||||
- suite: search
|
||||
args: "--type playwright --suites search"
|
||||
args: "--suites search"
|
||||
tika: true
|
||||
- suite: keycloak
|
||||
args: "--type playwright --suites journeys,keycloak"
|
||||
args: "--suites journeys,keycloak"
|
||||
keycloak: true
|
||||
- suite: mfa
|
||||
args: "--type playwright --suites mfa"
|
||||
mfa: true
|
||||
- suite: oidc
|
||||
args: "--type playwright specs/oidc/refreshToken.spec.ts"
|
||||
oidc: true
|
||||
- suite: oidc-iframe
|
||||
args: "--type playwright specs/oidc/iframeTokenRenewal.spec.ts"
|
||||
oidc_iframe: true
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
- name: Enable pnpm
|
||||
@@ -394,9 +387,9 @@ jobs:
|
||||
timeout 120 bash -c 'until curl -sf http://localhost:9998; do sleep 2; done'
|
||||
echo "tika ready."
|
||||
|
||||
# --- Keycloak (keycloak and mfa suites) ---
|
||||
# --- Keycloak (keycloak suite only) ---
|
||||
- name: Generate Keycloak certs
|
||||
if: matrix.keycloak == true || matrix.mfa == true
|
||||
if: matrix.keycloak == true
|
||||
run: |
|
||||
mkdir -p keycloak-certs
|
||||
openssl req -x509 -newkey rsa:2048 \
|
||||
@@ -406,7 +399,7 @@ jobs:
|
||||
chmod -R 777 keycloak-certs
|
||||
|
||||
- name: Start Postgres
|
||||
if: matrix.keycloak == true || matrix.mfa == true
|
||||
if: matrix.keycloak == true
|
||||
run: |
|
||||
docker run -d --name postgres --network host \
|
||||
-e POSTGRES_DB=keycloak \
|
||||
@@ -416,19 +409,12 @@ jobs:
|
||||
timeout 30 bash -c 'until docker exec postgres pg_isready -U keycloak; do sleep 1; done'
|
||||
|
||||
- name: Start Keycloak
|
||||
if: matrix.keycloak == true || matrix.mfa == true
|
||||
if: matrix.keycloak == true
|
||||
run: |
|
||||
# The mfa suite needs a different realm with TOTP MFA configured.
|
||||
# ocis-ci-realm uses ocis-server:9200, ocis-mfa-ci-realm uses localhost:9200;
|
||||
# ocis runs on 127.0.0.1:9200 so we rewrite both forms.
|
||||
if [[ "${{ matrix.mfa }}" == "true" ]]; then
|
||||
REALM_FILE=tests/config/ci/ocis-mfa-ci-realm.dist.json
|
||||
else
|
||||
REALM_FILE=tests/config/ci/ocis-ci-realm.dist.json
|
||||
fi
|
||||
sed -e 's|https://ocis-server:9200|https://127.0.0.1:9200|g' \
|
||||
-e 's|https://localhost:9200|https://127.0.0.1:9200|g' \
|
||||
"$REALM_FILE" > /tmp/ocis-realm.json
|
||||
# Patch realm: ocis-ci-realm.dist.json uses ocis-server:9200 as hostname.
|
||||
# GitHub Actions runs on the host network so patch it to 127.0.0.1.
|
||||
sed 's|https://ocis-server:9200|https://127.0.0.1:9200|g' \
|
||||
tests/config/drone/ocis-ci-realm.dist.json > /tmp/ocis-realm.json
|
||||
docker run -d --name keycloak --network host \
|
||||
-e OCIS_DOMAIN=https://127.0.0.1:9200 \
|
||||
-e KC_HOSTNAME=localhost \
|
||||
@@ -457,9 +443,6 @@ jobs:
|
||||
env:
|
||||
TIKA_NEEDED: ${{ matrix.tika == true && 'true' || 'false' }}
|
||||
KEYCLOAK_NEEDED: ${{ matrix.keycloak == true && 'true' || 'false' }}
|
||||
MFA_NEEDED: ${{ matrix.mfa == true && 'true' || 'false' }}
|
||||
OIDC_NEEDED: ${{ matrix.oidc == true && 'true' || 'false' }}
|
||||
OIDC_IFRAME_NEEDED: ${{ matrix.oidc_iframe == true && 'true' || 'false' }}
|
||||
|
||||
litmus:
|
||||
name: litmus
|
||||
@@ -513,8 +496,45 @@ jobs:
|
||||
- name: Run WOPI validator (cs3)
|
||||
run: python3 tests/acceptance/run-wopi.py --type cs3
|
||||
|
||||
# Validate that the ocis-setup + ocis-test composite actions work in this repo.
|
||||
composite-actions-apiGraph:
|
||||
name: composite-actions-apiGraph
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
tools: composer
|
||||
|
||||
- name: Build oCIS from source
|
||||
run: |
|
||||
make ci-node-generate
|
||||
make -C ocis build
|
||||
|
||||
- name: Setup oCIS
|
||||
uses: ./.github/actions/ocis-setup
|
||||
with:
|
||||
ocis-binary: ocis/bin/ocis
|
||||
|
||||
- name: Test apiGraph
|
||||
uses: ./.github/actions/ocis-test
|
||||
with:
|
||||
suite: apiGraph
|
||||
|
||||
all-acceptance-tests:
|
||||
needs: [local-api-tests, cli-tests, core-api-tests, litmus, cs3api, wopi-builtin, wopi-cs3, e2e-tests]
|
||||
needs: [local-api-tests, cli-tests, core-api-tests, litmus, cs3api, wopi-builtin, wopi-cs3, e2e-tests, composite-actions-apiGraph]
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
steps:
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
name: Composite Actions Test
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
composite-actions-apiGraph:
|
||||
name: composite-actions-apiGraph
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
tools: composer
|
||||
|
||||
- name: Build oCIS from source
|
||||
run: |
|
||||
make ci-node-generate
|
||||
make -C ocis build
|
||||
|
||||
- name: Setup oCIS
|
||||
uses: ./.github/actions/ocis-setup
|
||||
with:
|
||||
ocis-binary: ocis/bin/ocis
|
||||
|
||||
- name: Test apiGraph
|
||||
uses: ./.github/actions/ocis-test
|
||||
with:
|
||||
suite: apiGraph
|
||||
@@ -1,79 +0,0 @@
|
||||
name: test deployment example
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 0 * * *" # every day at 00:00 UTC
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- example: ocis_full
|
||||
urls: "https://ocis.owncloud.test"
|
||||
- example: ocis_ldap
|
||||
urls: "https://ocis.owncloud.test https://ldap.owncloud.test"
|
||||
- example: ocis_multi
|
||||
urls: "https://ocis.owncloud.test https://ocis.ocm.owncloud.test"
|
||||
- example: ocis_ocm
|
||||
urls: "https://ocis.owncloud.test https://ocis.ocm.owncloud.test https://ocis.ocm.next.owncloud.test"
|
||||
- example: ocis_keycloak
|
||||
urls: "https://ocis.owncloud.test https://keycloak.owncloud.test"
|
||||
|
||||
steps:
|
||||
- name: Checkout ocis repo
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: owncloud/ocis
|
||||
|
||||
- name: Set up Docker Compose
|
||||
uses: docker/setup-compose-action@8cccb8c14b6500aaffebff1aa49c502c34d2e5e6 # v2.1.0
|
||||
|
||||
- name: Prepare hosts entry
|
||||
run: |
|
||||
echo "127.0.0.1 ocis.owncloud.test collabora.owncloud.test keycloak.owncloud.test mail.owncloud.test minio.owncloud.test onlyoffice.owncloud.test tika ldap.owncloud.test ocis.ocm.owncloud.test ocis.ocm.next.owncloud.test onlyoffice.owncloud.test" | sudo tee -a /etc/hosts
|
||||
|
||||
- name: Run compose stack
|
||||
working-directory: deployments/examples/${{ matrix.example }}
|
||||
run: |
|
||||
set -e
|
||||
echo "=== Running ${{ matrix.example }} ==="
|
||||
docker compose up -d
|
||||
|
||||
- name: Wait for services
|
||||
run: |
|
||||
set -e
|
||||
|
||||
URLS="${{ matrix.urls }}"
|
||||
|
||||
for url in $URLS; do
|
||||
echo "=== Waiting for $url ==="
|
||||
|
||||
end=$((SECONDS+150))
|
||||
ready=false
|
||||
|
||||
while [ $SECONDS -lt $end ]; do
|
||||
echo "Trying $url"
|
||||
if curl -kfsS --max-time 5 "$url" > /dev/null; then
|
||||
echo "✅ $url is ready"
|
||||
ready=true
|
||||
break
|
||||
fi
|
||||
echo "⏳ Not ready yet, retrying in 5s..."
|
||||
sleep 5
|
||||
done
|
||||
|
||||
if [ "$ready" = false ]; then
|
||||
echo "❌ $url never became ready"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Tear down
|
||||
if: always()
|
||||
working-directory: deployments/examples/${{ matrix.example }}
|
||||
run: docker compose down -v
|
||||
@@ -1,54 +0,0 @@
|
||||
name: k6 Load Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
schedule:
|
||||
- cron: '0 1 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: k6-load-test-server
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
k6-load-test:
|
||||
name: k6-load-test
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: owncloudci/alpine:latest
|
||||
if: >-
|
||||
github.event_name == 'schedule' ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
contains(github.event.pull_request.title || '', 'k6-test'))
|
||||
env:
|
||||
SSH_OCIS_REMOTE: ${{ secrets.SSH_OCIS_REMOTE }}
|
||||
SSH_OCIS_USERNAME: ${{ secrets.SSH_OCIS_USERNAME }}
|
||||
SSH_OCIS_PASSWORD: ${{ secrets.SSH_OCIS_PASSWORD }}
|
||||
TEST_SERVER_URL: ${{ secrets.TEST_SERVER_URL }}
|
||||
SSH_K6_REMOTE: ${{ secrets.SSH_K6_REMOTE }}
|
||||
SSH_K6_USERNAME: ${{ secrets.SSH_K6_USERNAME }}
|
||||
SSH_K6_PASSWORD: ${{ secrets.SSH_K6_PASSWORD }}
|
||||
OCIS_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Install SSH dependencies
|
||||
run: apk add --no-cache openssh-client sshpass
|
||||
|
||||
- name: Run k6 load tests
|
||||
if: ${{ !cancelled() }}
|
||||
run: sh tests/config/drone/run_k6_tests.sh
|
||||
|
||||
- name: Retrieve OCIS logs
|
||||
if: ${{ !cancelled() }}
|
||||
run: sh tests/config/drone/run_k6_tests.sh --ocis-log
|
||||
|
||||
- name: Show Grafana dashboard link
|
||||
if: ${{ !cancelled() }}
|
||||
run: |
|
||||
echo "Grafana Dashboard: https://grafana.k6.infra.owncloud.works"
|
||||
@@ -80,17 +80,16 @@ jobs:
|
||||
|
||||
generate-code:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- run: npm install --silent -g yarn npx --force
|
||||
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v4
|
||||
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
|
||||
with:
|
||||
version: ${{ env.PNPM_VERSION }}
|
||||
- run: pnpm config set store-dir ./.pnpm-store && make ci-node-generate
|
||||
@@ -99,11 +98,7 @@ jobs:
|
||||
- run: make ci-go-generate
|
||||
env:
|
||||
BUF_TOKEN: ${{ secrets.BUF_API_TOKEN }}
|
||||
- name: bump LatestTag
|
||||
run: |
|
||||
VERSION="${{ needs.determine-release-type.outputs.version }}"
|
||||
sed -i "s/LatestTag = \".*\"/LatestTag = \"$VERSION\"/" ocis-pkg/version/version.go
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: |
|
||||
@@ -114,14 +109,19 @@ jobs:
|
||||
docker-build:
|
||||
name: docker-build (${{ matrix.arch }}, ${{ matrix.repo }})
|
||||
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
|
||||
needs: [determine-release-type, generate-code, security-scan-trivy]
|
||||
needs: [determine-release-type, generate-code]
|
||||
outputs:
|
||||
digest-amd64-rolling: ${{ steps.digest.outputs.digest-amd64-rolling }}
|
||||
digest-arm64-rolling: ${{ steps.digest.outputs.digest-arm64-rolling }}
|
||||
digest-amd64: ${{ steps.digest.outputs.digest-amd64 }}
|
||||
digest-arm64: ${{ steps.digest.outputs.digest-arm64 }}
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [amd64, arm64]
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
@@ -130,20 +130,15 @@ jobs:
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- id: goversion
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
ALPINE_VERSION=$(grep '^FROM.*alpine:' ocis/docker/Dockerfile.linux.${{ matrix.arch }} | grep -o 'alpine:[0-9.]*' | cut -d: -f2 | cut -d. -f1,2)
|
||||
docker run --rm \
|
||||
-v "${{ github.workspace }}:/workspace" \
|
||||
-w /workspace \
|
||||
"golang:${{ steps.goversion.outputs.go-version }}-alpine${ALPINE_VERSION}" \
|
||||
sh -c "apk add --no-cache bash gcc musl-dev vips-dev make git && \
|
||||
git config --global --add safe.directory /workspace && \
|
||||
CGO_ENABLED=1 ENABLE_VIPS=true VERSION=${{ needs.determine-release-type.outputs.version }} \
|
||||
make -C ocis release-linux-docker-${{ matrix.arch }}"
|
||||
- run: sudo apt-get update -q && sudo apt-get install -qy libvips libvips-dev
|
||||
- run: make -C ocis release-linux-docker-${{ matrix.arch }}
|
||||
env:
|
||||
CGO_ENABLED: 1
|
||||
GOOS: linux
|
||||
ENABLE_VIPS: true
|
||||
- id: tags
|
||||
run: |
|
||||
VERSION="${{ needs.determine-release-type.outputs.version }}"
|
||||
@@ -152,39 +147,22 @@ jobs:
|
||||
printf "tags<<EOF\n%s\nEOF\n" \
|
||||
"${REPO}:${VERSION}-linux-${ARCH}" >> $GITHUB_OUTPUT
|
||||
- id: build
|
||||
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
|
||||
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
|
||||
with:
|
||||
context: ocis
|
||||
file: ocis/docker/Dockerfile.linux.${{ matrix.arch }}
|
||||
platforms: linux/${{ matrix.arch }}
|
||||
load: true
|
||||
push: false
|
||||
push: true
|
||||
provenance: false
|
||||
build-args: |
|
||||
REVISION=${{ github.sha }}
|
||||
VERSION=${{ needs.determine-release-type.outputs.version }}
|
||||
tags: ${{ steps.tags.outputs.tags }}
|
||||
- id: trivy
|
||||
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
continue-on-error: true
|
||||
with:
|
||||
image-ref: ${{ steps.tags.outputs.tags }}
|
||||
format: table
|
||||
exit-code: 1
|
||||
severity: HIGH,CRITICAL
|
||||
ignore-unfixed: true
|
||||
skip-files: /usr/bin/gomplate,/usr/bin/wait-for
|
||||
hide-progress: true
|
||||
env:
|
||||
TRIVY_IGNOREFILE: .trivyignore
|
||||
- name: Block on vulnerabilities
|
||||
if: steps.trivy.outcome == 'failure'
|
||||
- id: digest
|
||||
run: |
|
||||
echo "::error title=Security scan blocked release::Image ${{ steps.tags.outputs.tags }} has HIGH or CRITICAL vulnerabilities (see Trivy report above). Fix all findings before releasing."
|
||||
exit 1
|
||||
- name: push
|
||||
if: steps.trivy.outcome == 'success'
|
||||
run: docker push ${{ steps.tags.outputs.tags }}
|
||||
[[ "${{ matrix.repo }}" == *"rolling"* ]] \
|
||||
&& echo "digest-${{ matrix.arch }}-rolling=${{ steps.build.outputs.digest }}" >> $GITHUB_OUTPUT \
|
||||
|| echo "digest-${{ matrix.arch }}=${{ steps.build.outputs.digest }}" >> $GITHUB_OUTPUT
|
||||
|
||||
docker-scan:
|
||||
name: docker-scan (${{ matrix.arch }}, ${{ matrix.repo }})
|
||||
@@ -196,7 +174,7 @@ jobs:
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
- uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
id: trivy
|
||||
continue-on-error: true
|
||||
with:
|
||||
@@ -219,7 +197,7 @@ jobs:
|
||||
docker-manifest:
|
||||
name: docker-manifest (${{ matrix.repo }})
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, docker-build, docker-scan]
|
||||
needs: [determine-release-type, docker-build]
|
||||
strategy:
|
||||
matrix:
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
@@ -232,14 +210,14 @@ jobs:
|
||||
run: |
|
||||
docker buildx imagetools create \
|
||||
-t "${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-amd64" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-arm64"
|
||||
"${{ needs.docker-build.outputs.digest-amd64-rolling }}" \
|
||||
"${{ needs.docker-build.outputs.digest-arm64-rolling }}"
|
||||
- if: ${{ !contains(matrix.repo, 'rolling') }}
|
||||
run: |
|
||||
docker buildx imagetools create \
|
||||
-t "${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-amd64" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-arm64"
|
||||
"${{ needs.docker-build.outputs.digest-amd64 }}" \
|
||||
"${{ needs.docker-build.outputs.digest-arm64 }}"
|
||||
|
||||
docker-readme:
|
||||
name: docker-readme (${{ matrix.repo }})
|
||||
@@ -266,11 +244,11 @@ jobs:
|
||||
os: [linux, darwin]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
@@ -279,7 +257,7 @@ jobs:
|
||||
if [[ "${{ matrix.os }}" == "linux" ]]; then
|
||||
cp assets/End-User-License-Agreement-for-ownCloud-Infinite-Scale.pdf ocis/dist/release/
|
||||
fi
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: binaries-${{ matrix.os }}
|
||||
path: ocis/dist/release/*
|
||||
@@ -289,34 +267,33 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
- uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
with:
|
||||
scan-type: fs
|
||||
format: table
|
||||
exit-code: 1
|
||||
exit-code: 0
|
||||
severity: CRITICAL,HIGH
|
||||
trivy-config: .trivy.yaml
|
||||
|
||||
license-check:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, generate-code]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: npm install --silent -g yarn npx "pnpm@$PNPM_VERSION" --force
|
||||
- run: make ci-node-check-licenses && make ci-node-save-licenses
|
||||
- run: make ci-go-check-licenses && make ci-go-save-licenses
|
||||
- run: tar -czf third-party-licenses.tar.gz -C third-party-licenses .
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: third-party-licenses.tar.gz
|
||||
@@ -329,7 +306,7 @@ jobs:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
@@ -339,7 +316,7 @@ jobs:
|
||||
if [[ $(wc -l < ocis/dist/CHANGELOG.md) -lt 5 ]]; then
|
||||
echo "Development release — no release notes yet. See [unreleased changes](https://github.com/owncloud/ocis/tree/master/changelog/unreleased/)." > ocis/dist/CHANGELOG.md
|
||||
fi
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: changelog
|
||||
path: ocis/dist/CHANGELOG.md
|
||||
@@ -347,25 +324,25 @@ jobs:
|
||||
|
||||
create-github-release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, build-binaries, license-check, generate-changelog, security-scan-trivy, docker-readme]
|
||||
needs: [determine-release-type, build-binaries, license-check, generate-changelog]
|
||||
steps:
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-linux
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-darwin
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: changelog
|
||||
path: .
|
||||
- uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
|
||||
- uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
|
||||
with:
|
||||
tag_name: v${{ needs.determine-release-type.outputs.version }}
|
||||
name: v${{ needs.determine-release-type.outputs.version }}
|
||||
@@ -389,15 +366,15 @@ jobs:
|
||||
- create-github-release
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-linux
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-darwin
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: release-assets
|
||||
@@ -409,3 +386,34 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
needs:
|
||||
- determine-release-type
|
||||
- generate-code
|
||||
- docker-build
|
||||
- docker-scan
|
||||
- docker-manifest
|
||||
- docker-readme
|
||||
- build-binaries
|
||||
- security-scan-trivy
|
||||
- license-check
|
||||
- generate-changelog
|
||||
- create-github-release
|
||||
- audit-release
|
||||
steps:
|
||||
- run: |
|
||||
[[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]] \
|
||||
&& STATUS="FAILURE" || STATUS="SUCCESS"
|
||||
[[ "${{ github.event_name }}" == "schedule" ]] \
|
||||
&& SOURCE="nightly-${{ github.ref_name }}" \
|
||||
|| SOURCE="${{ github.ref_type == 'tag' && format('tag {0}', github.ref_name) || github.ref_name }}"
|
||||
SHA="${{ github.sha }}"
|
||||
MSG="${STATUS} [${{ github.repository }}#${SHA:0:8}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) (${SOURCE}) by **${{ github.triggering_actor }}**"
|
||||
[[ -z "${{ secrets.MATRIX_HOMESERVER }}" ]] && { echo "MATRIX_HOMESERVER not set, skipping notification"; exit 0; }
|
||||
curl -sf -X PUT \
|
||||
-H "Authorization: Bearer ${{ secrets.MATRIX_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"msgtype\":\"m.text\",\"body\":\"${MSG}\"}" \
|
||||
"${{ secrets.MATRIX_HOMESERVER }}/_matrix/client/r0/rooms/${{ secrets.MATRIX_ROOMID }}/send/m.room.message/$(date +%s)"
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
name: Remove Stale Branches
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: fpicalausa/remove-stale-branches@9b829bc2975ade0c61e64e9613def53ec0732440 # v2.6.1
|
||||
- uses: fpicalausa/remove-stale-branches@v2.4.0
|
||||
with:
|
||||
ignore-unknown-authors: true
|
||||
default-recipient: "kobergj"
|
||||
|
||||
@@ -18,14 +18,15 @@ jobs:
|
||||
container: golang:1.25-alpine
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Run CI Reporter
|
||||
working-directory: tools/ci-reporter
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# Review the pipelines in last 14 days before the dorne logs expire
|
||||
run: |
|
||||
GOWORK=off go run ./cmd/list-flaky-tests \
|
||||
GOWORK=off go run ./cmd/list-failed-commits \
|
||||
--github-token "$GITHUB_TOKEN" \
|
||||
--workflow acceptance-tests.yml \
|
||||
--since 4w
|
||||
--since 14d \
|
||||
--max-commits 9999999
|
||||
@@ -62,5 +62,4 @@ go.work.sum
|
||||
.envrc
|
||||
CLAUDE.md
|
||||
.claude/
|
||||
GEMINI.md
|
||||
.agents/
|
||||
+7
-1
@@ -29,7 +29,11 @@ ifndef OUTPUT
|
||||
endif
|
||||
|
||||
ifndef VERSION
|
||||
STRING ?= $(shell git rev-parse --short HEAD)
|
||||
ifneq ($(DRONE_TAG),)
|
||||
VERSION ?= $(subst v,,$(DRONE_TAG))
|
||||
else
|
||||
STRING ?= $(shell git rev-parse --short HEAD)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef DATE
|
||||
@@ -114,6 +118,7 @@ debug-linux-docker-amd64: release-dirs
|
||||
-gcflags="all=-N -l" \
|
||||
-tags 'netgo $(TAGS)' \
|
||||
-buildmode=exe \
|
||||
-trimpath \
|
||||
-ldflags '-extldflags "-static" $(DEBUG_LDFLAGS) $(DOCKER_LDFLAGS)' \
|
||||
-o '$(DIST)/binaries/$(EXECUTABLE)-linux-amd64' \
|
||||
./cmd/$(NAME)
|
||||
@@ -125,6 +130,7 @@ debug-linux-docker-arm64: release-dirs
|
||||
-gcflags="all=-N -l" \
|
||||
-tags 'netgo $(TAGS)' \
|
||||
-buildmode=exe \
|
||||
-trimpath \
|
||||
-ldflags '-extldflags "-static" $(DEBUG_LDFLAGS) $(DOCKER_LDFLAGS)' \
|
||||
-o '$(DIST)/binaries/$(EXECUTABLE)-linux-arm64' \
|
||||
./cmd/$(NAME)
|
||||
@@ -1,3 +0,0 @@
|
||||
scan:
|
||||
skip-files:
|
||||
- vendor/github.com/crewjam/saml/xmlenc/fuzz.go
|
||||
+7
-2
@@ -2,5 +2,10 @@
|
||||
# Add CVE IDs or file paths here to suppress known/accepted findings.
|
||||
# See: https://aquasecurity.github.io/trivy/latest/docs/configuration/filtering/#trivyignore
|
||||
|
||||
CVE-2026-32284 # github.com/shamaton/msgpack/v2 v2.4.0 — no fix available upstream
|
||||
vendor/github.com/crewjam/saml/xmlenc/fuzz.go # test RSA key used in fuzz corpus, not a real secret
|
||||
# Alpine 3.23.3 ships vulnerable package versions; no fixed base image exists yet.
|
||||
# Fix: bump FROM alpine:3.23.3 → alpine:3.23.4 once released, or add
|
||||
# RUN apk upgrade --no-cache
|
||||
# to Dockerfile.linux.amd64 and Dockerfile.linux.arm64.
|
||||
CVE-2026-28390 # libcrypto3/libssl3 3.5.5-r0 → fixed in 3.5.6-r0 (openssl DoS)
|
||||
CVE-2026-22184 # zlib 1.3.1-r2 → fixed in 1.3.2-r0 (buffer overflow in untgz)
|
||||
CVE-2026-40200 # musl/musl-utils 1.2.5-r21 → fixed in 1.2.5-r23 (stack-based arbitrary code execution / DoS)
|
||||
+2
-3
@@ -30,9 +30,8 @@ RUN make ci-go-generate build ENABLE_VIPS=true
|
||||
|
||||
FROM alpine:3.23.4
|
||||
|
||||
RUN apk add --no-cache attr ca-certificates curl mailcap tree \
|
||||
&& apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community "vips=8.18.2-r0" \
|
||||
&& echo 'hosts: files dns' >| /etc/nsswitch.conf
|
||||
RUN apk add --no-cache attr ca-certificates curl mailcap tree vips && \
|
||||
echo 'hosts: files dns' >| /etc/nsswitch.conf
|
||||
|
||||
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
|
||||
org.label-schema.name="ownCloud Infinite Scale" \
|
||||
|
||||
@@ -108,7 +108,7 @@ See the [Install Infinite Scale on a Server](https://doc.owncloud.com/ocis/next/
|
||||
|
||||
Use this method to build and run an instance with the latest code. This is only recommended for development purposes.
|
||||
|
||||
The minimum go version required is `1.25.10`.\
|
||||
The minimum go version required is `1.25.7`.\
|
||||
Note that you need a C compile environment installed as a prerequisite because some dependencies, like reva, have components that require C-Go libraries and toolchains. The command installing for debian based systems is: `sudo apt install build-essential`.
|
||||
|
||||
To build and run a local instance with demo users:
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Bump reva
|
||||
|
||||
Bumped reva to the latest version. This includes a refactoring of the
|
||||
scope expansion and verification logic, as well as a fix for the
|
||||
signature-auth propfind attribute that now correctly supports archive
|
||||
downloads in password-protected public links.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12097
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Bump Web to 12.3.2
|
||||
|
||||
- Enhancement [owncloud/ocis#11963](https://github.com/owncloud/ocis/issues/11963): Use signature auth
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12074
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.2
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Don't write empty externalID to LDAP
|
||||
|
||||
When creating new users in the graph service, the externalID attribute was being written to LDAP even when it was empty.
|
||||
Now, the externalID attribute is only written when it has a non-empty value.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12085
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Expose the signature-auth attribute
|
||||
|
||||
Expose the "oc:signature-auth" attribute for the subfolders in the public link propfinds.
|
||||
This is a necessary change to be able to support archive downloads in password protected public links.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12052
|
||||
@@ -1,7 +0,0 @@
|
||||
Enhancement: Add SpaceEditorWithoutVersionsWithoutTrashbin space membership role
|
||||
|
||||
Added a new space membership role "Can edit" (SpaceEditorWithoutVersionsWithoutTrashbin)
|
||||
that grants full editor permissions (create, upload, download, edit, move, delete) on a
|
||||
space without access to file versions or the trashbin.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12245
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Add spaceid to REPORT
|
||||
|
||||
Added the `spaceid` to the REPORT responses. This is aligning the `REPORT` method with the `PROPFIND` method.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12241
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Bump Web to 12.3.3
|
||||
|
||||
- Bugfix [owncloud/web#13638](https://github.com/owncloud/web/pull/13638): Share button not usable when role dropdown text is too long
|
||||
- Bugfix [owncloud/web#13667](https://github.com/owncloud/web/pull/13667): Shared with does not show members
|
||||
- Bugfix [owncloud/web#13680](https://github.com/owncloud/web/pull/13680): Escape strings when returned from server
|
||||
|
||||
https://github.com/owncloud/web/pull/13705
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.3
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Allow multiple objectClasses on group creation
|
||||
|
||||
Added support for configuring additional LDAP objectClasses when creating groups.
|
||||
The new `OCIS_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES` / `GRAPH_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES`
|
||||
environment variable accepts a list of extra objectClasses that are set alongside the
|
||||
primary `GRAPH_LDAP_GROUP_OBJECTCLASS` when a new group is created in LDAP.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12242
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix the internal links
|
||||
|
||||
We fixed the internal links access control
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12231
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix OCM share permission change notification
|
||||
|
||||
Fix the OCM share permission change notification handling.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12190
|
||||
@@ -1,15 +0,0 @@
|
||||
Bugfix: Fix space management middleware removing users from spaces on download
|
||||
|
||||
The space management middleware ran on every authenticated request, including
|
||||
signed URL requests used for file downloads. Since signed URL auth does not
|
||||
carry OIDC claims, the middleware interpreted the absence of claims as "user
|
||||
should have no space access" and removed the user from all project spaces.
|
||||
On the next OIDC request the user was re-added, causing an oscillating
|
||||
add/remove cycle that led to intermittent download failures and transient
|
||||
"space not found" errors.
|
||||
|
||||
The middleware now skips reconciliation entirely when no OIDC claims are
|
||||
present in the request context.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12285
|
||||
https://github.com/owncloud/ocis/issues/12285
|
||||
@@ -1,11 +0,0 @@
|
||||
Bugfix: Return 200 OK for WOPI Lock requests in read-only and view-only modes
|
||||
|
||||
OnlyOffice sends a WOPI Lock request when opening any document, even when
|
||||
the user only has read access. The WOPI Lock handler was attempting to acquire
|
||||
a CS3 write lock regardless of the view mode, causing a permission error for
|
||||
read-only tokens that OnlyOffice displayed as an error message on load.
|
||||
|
||||
The Lock handler now returns 200 OK immediately for READ_ONLY and VIEW_ONLY
|
||||
view modes without attempting to acquire a lock, consistent with the WOPI spec.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12257
|
||||
@@ -1,6 +0,0 @@
|
||||
Security: Bump Go to 1.25.10
|
||||
|
||||
Fixes CVE-2026-33811, CVE-2026-33814, CVE-2026-39820, CVE-2026-39836,
|
||||
CVE-2026-42499.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12306
|
||||
@@ -1,8 +0,0 @@
|
||||
Bugfix: SpaceEditorWithoutTrashbin roles now correctly allow file editing
|
||||
|
||||
Fixed a bug where the *WithoutTrashbin space editor roles were rendered as read-only
|
||||
in the Web frontend. The OCS PermissionWrite bit was not set for these roles because
|
||||
the RoleFromResourcePermissions round-trip required RestoreRecycleItem, which these
|
||||
roles intentionally omit.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12346
|
||||
@@ -1,6 +0,0 @@
|
||||
Security: Upgrade libvips to 8.18.2
|
||||
|
||||
Bumped libvips to 8.18.2 in all Docker images to pick up the fix for a
|
||||
stack buffer overflow.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12301
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
Enhancement: Add SpaceEditorWithoutVersionsWithoutTrashbin space membership role
|
||||
|
||||
Added a new space membership role "Can edit" (SpaceEditorWithoutVersionsWithoutTrashbin)
|
||||
that grants full editor permissions (create, upload, download, edit, move, delete) on a
|
||||
space without access to file versions or the trashbin.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12261
|
||||
@@ -1,7 +0,0 @@
|
||||
Enhancement: Add VaultMode permission
|
||||
|
||||
Add a new `VaultMode.ReadWriteEnabled` permission that gates the visibility of the
|
||||
vault mode switcher in the web UI. The permission is assigned to the admin,
|
||||
space admin and user roles. The user light role does not receive it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12328
|
||||
@@ -1,10 +0,0 @@
|
||||
Bugfix: Skip indexing of files still in postprocessing
|
||||
|
||||
When the search service re-indexed a space in response to an UploadReady
|
||||
event, the walker visited sibling nodes whose blobs were not yet finalized
|
||||
in the blobstore. Content extraction for those in-flight nodes triggered
|
||||
spurious storage-users error logs (S3 NoSuchKey). The walker now skips
|
||||
nodes marked as processing; they are indexed when their own UploadReady
|
||||
event arrives.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12350
|
||||
@@ -1,8 +0,0 @@
|
||||
Bugfix: Stable order for user search attributes
|
||||
|
||||
The `attributes` field returned from the user search endpoint came back in a
|
||||
random order because `getUsersAttributes` ranged over a Go map. The function
|
||||
now iterates over the configured `UserSearchDisplayedAttributes` slice, so
|
||||
the returned attribute values follow the configured order.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12337
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement Add vault themes
|
||||
|
||||
We've added new themes that are available in the vault. These new themes are intended to make a clear distinction between regular drives and vault.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12329
|
||||
@@ -1,13 +0,0 @@
|
||||
Enhancement: Bump dependencies
|
||||
|
||||
Bumped Go and npm dependencies, including security fixes:
|
||||
|
||||
- `github.com/owncloud/reva/v2` to `v2.0.0-20260519092700-9da01c6fb954`
|
||||
- `github.com/shamaton/msgpack/v2` v2.4.0 → v2.4.1 (CVE: denial of service)
|
||||
- `filippo.io/edwards25519` v1.1.0 → v1.1.1
|
||||
- `github.com/cloudflare/circl` v1.6.1 → v1.6.3
|
||||
- `github.com/russellhaering/goxmldsig` v1.5.0 → v1.6.0
|
||||
- `postcss`, `fast-uri`, `@babel/plugin-transform-modules-systemjs` (npm, via pnpm lock regen)
|
||||
- GitHub Actions: `actions/upload-artifact` 4→7, `actions/download-artifact` 4→8, `pnpm/action-setup` 5→6, `fpicalausa/remove-stale-branches` 2.4→2.6
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12325
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Bump Web to 12.3.3
|
||||
|
||||
- Bugfix [owncloud/web#13638](https://github.com/owncloud/web/pull/13638): Share button not usable when role dropdown text is too long
|
||||
- Bugfix [owncloud/web#13667](https://github.com/owncloud/web/pull/13667): Shared with does not show members
|
||||
- Bugfix [owncloud/web#13680](https://github.com/owncloud/web/pull/13680): Escape strings when returned from server
|
||||
|
||||
https://github.com/owncloud/web/pull/13705
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.3
|
||||
@@ -1,21 +0,0 @@
|
||||
Enhancement: Bump Web to 12.4.0
|
||||
|
||||
- Bugfix [owncloud/web#13363](https://github.com/owncloud/web/issues/13363): Prevent duplicate call for password protected public links
|
||||
- Bugfix [owncloud/web#13578](https://github.com/owncloud/web/pull/13578): Use dynamic viewport units (dvh/dvw) instead of viewport units (vh/vw)
|
||||
- Bugfix [owncloud/web#13610](https://github.com/owncloud/web/pull/13610): Cannot edit public link when name is too long
|
||||
- Bugfix [owncloud/web#13634](https://github.com/owncloud/web/pull/13634): Fix space key selecting wrong resource
|
||||
- Bugfix [owncloud/web#13793](https://github.com/owncloud/web/pull/13793): Fix share invite button being pushed down in space sharing
|
||||
- Bugfix [owncloud/web#13799](https://github.com/owncloud/web/pull/13799): Fix upload confirmation not visible on file drop page
|
||||
- Enhancement [owncloud/web#13545](https://github.com/owncloud/web/pull/13545): Strip WebDAV prefix
|
||||
- Enhancement [owncloud/web#13577](https://github.com/owncloud/web/pull/13577): Use spaceId
|
||||
- Enhancement [owncloud/web#13631](https://github.com/owncloud/web/pull/13631): Add theme mode
|
||||
- Enhancement [owncloud/web#13632](https://github.com/owncloud/web/issues/13632): Support log and conf files in text editor
|
||||
- Enhancement [owncloud/web#13759](https://github.com/owncloud/web/pull/13759): Show correct modal for saveAs and open actions
|
||||
- Enhancement [owncloud/web#13769](https://github.com/owncloud/web/pull/13769): Add vault search separation
|
||||
- Enhancement [owncloud/web#13795](https://github.com/owncloud/web/pull/13795): Add new theme colors
|
||||
- Enhancement [owncloud/web#13802](https://github.com/owncloud/web/pull/13802): Check vault permission
|
||||
- Enhancement [owncloud/web#13803](https://github.com/owncloud/web/pull/13803): MFA session expiry warning
|
||||
- Enhancement [owncloud/web#13803](https://github.com/owncloud/web/pull/13803): Vault-aware breadcrumbs
|
||||
|
||||
https://github.com/owncloud/web/pull/13809
|
||||
https://github.com/owncloud/web/releases/tag/v12.4.0
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Disable public link sharing for vault resources
|
||||
|
||||
The `graph` service now rejects creating, updating, and setting passwords on
|
||||
public links when the target resource lives in the vault storage provider.
|
||||
Requests targeting a vault resource return `400 Bad Request` with the message
|
||||
`public links are not allowed for vault resources`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12321
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Update web-extension images in ocis_fuill
|
||||
|
||||
The imgages for web-extensions have been updated for
|
||||
the ocis_full deployment example.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12324
|
||||
@@ -1,10 +0,0 @@
|
||||
Enhancement: Add vault capabilities to the OCS capabilities endpoint
|
||||
|
||||
Added `OCIS_ENABLE_VAULT_MODE` / `FRONTEND_ENABLE_VAULT_MODE` config option to
|
||||
the frontend service. When enabled, the OCS capabilities endpoint advertises
|
||||
`vault.enabled = true`. Clients can request vault-specific capabilities via
|
||||
`/ocs/v2.php/cloud/capabilities?vault=true`, which returns a response with
|
||||
public sharing and federation sharing disabled.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12283
|
||||
https://github.com/owncloud/reva/pull/584
|
||||
@@ -1,15 +0,0 @@
|
||||
Enhancement: Add vault storage with MFA-protected access
|
||||
|
||||
Added a dedicated vault storage that can be protected with MFA. A separate
|
||||
`storage-users` service instance configured in vault mode runs and serves
|
||||
`/vault/users` and `/vault/projects` mount points with a dedicated
|
||||
`VaultStorageProviderID`. The `graph` service gained a new vault mode
|
||||
(`OCIS_ENABLE_VAULT_MODE`) that serves the vault API under the `/vault`
|
||||
prefix. The storage registry now routes vault-specific requests exclusively to
|
||||
the vault storage provider, preventing accidental access to vault spaces when
|
||||
no explicit storage ID is provided.
|
||||
|
||||
MFA status is propagated through gRPC metadata
|
||||
and forwarded in HTTP headers for WOPI/collaboration flows.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12108
|
||||
@@ -1,9 +0,0 @@
|
||||
Bugfix: Cache compiled rego policies to avoid recompiling on every request
|
||||
|
||||
The policies service was reading and compiling .rego files from disk on
|
||||
every request, causing unnecessary memory pressure and per-request
|
||||
latency. The compiled PreparedEvalQuery is now cached per query string
|
||||
so compilation happens at most once per query string over the lifetime
|
||||
of the service.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12345
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Fix CreateHome cache
|
||||
|
||||
Move the CreateHome middleware cache to the proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12128
|
||||
https://github.com/owncloud/reva/pull/562
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
Bugfix: Don't use hardcoded groupOfNames in group creation
|
||||
|
||||
Formerly, when creating a group with a different objectClass, it will always use groupOfNames instead of the one provided in the config.
|
||||
Now, the server creates groups using the objectClass defined in the config.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11776
|
||||
@@ -1,7 +0,0 @@
|
||||
Bugfix: Search no longer disabled when OCIS_DISABLE_PREVIEWS=true
|
||||
|
||||
Setting OCIS_DISABLE_PREVIEWS=true removed the WebDAV REPORT routes from
|
||||
the router, breaking search on /dav/files, /dav/spaces and /webdav. The
|
||||
search routes are now registered independently of the preview flag.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12303
|
||||
@@ -1,15 +0,0 @@
|
||||
Bugfix: Fix space management middleware removing users from spaces on download
|
||||
|
||||
The space management middleware ran on every authenticated request, including
|
||||
signed URL requests used for file downloads. Since signed URL auth does not
|
||||
carry OIDC claims, the middleware interpreted the absence of claims as "user
|
||||
should have no space access" and removed the user from all project spaces.
|
||||
On the next OIDC request the user was re-added, causing an oscillating
|
||||
add/remove cycle that led to intermittent download failures and transient
|
||||
"space not found" errors.
|
||||
|
||||
The middleware now skips reconciliation entirely when no OIDC claims are
|
||||
present in the request context.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12285
|
||||
https://github.com/owncloud/ocis/issues/12285
|
||||
@@ -1,8 +0,0 @@
|
||||
Bugfix: SpaceEditorWithoutTrashbin roles now correctly allow file editing
|
||||
|
||||
Fixed a bug where the *WithoutTrashbin space editor roles were rendered as read-only
|
||||
in the Web frontend. The OCS PermissionWrite bit was not set for these roles because
|
||||
the RoleFromResourcePermissions round-trip required RestoreRecycleItem, which these
|
||||
roles intentionally omit.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12346
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix typo in README
|
||||
|
||||
Fixed a typo in the README documentation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12263
|
||||
@@ -1,11 +0,0 @@
|
||||
Bugfix: Return 200 OK for WOPI Lock requests in read-only and view-only modes
|
||||
|
||||
OnlyOffice sends a WOPI Lock request when opening any document, even when
|
||||
the user only has read access. The WOPI Lock handler was attempting to acquire
|
||||
a CS3 write lock regardless of the view mode, causing a permission error for
|
||||
read-only tokens that OnlyOffice displayed as an error message on load.
|
||||
|
||||
The Lock handler now returns 200 OK immediately for READ_ONLY and VIEW_ONLY
|
||||
view modes without attempting to acquire a lock, consistent with the WOPI spec.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12257
|
||||
@@ -1,8 +0,0 @@
|
||||
Security: Fix signing-key to public share guests
|
||||
|
||||
The /ocs/v[12].php/cloud/user/signing-key endpoint was reachable through a
|
||||
public share session.
|
||||
The endpoint `public-token` is no longer allowed by the public-share resource scope in reva.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12332
|
||||
https://github.com/owncloud/reva/pull/608
|
||||
@@ -1,6 +0,0 @@
|
||||
Security: Upgrade libvips to 8.18.2
|
||||
|
||||
Bumped libvips to 8.18.2 in all Docker images to pick up the fix for a
|
||||
stack buffer overflow.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12301
|
||||
File renamed without changes.
@@ -5,4 +5,3 @@ bumped reva version
|
||||
https://github.com/owncloud/ocis/pull/12051
|
||||
https://github.com/owncloud/ocis/pull/12087
|
||||
https://github.com/owncloud/ocis/pull/12137
|
||||
https://github.com/owncloud/ocis/pull/12302
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
|
||||
# Pins the ownCloud Web frontend version used in CI tests.
|
||||
# Read by: tests/acceptance/run-e2e.py and .github/workflows/acceptance-tests.yml (Playwright cache key).
|
||||
WEB_COMMITID=7dbf6ee5d4df704d19cc33da5564042e226e6871
|
||||
WEB_BRANCH=stable-12.4
|
||||
WEB_COMMITID=6165b4e47a47e3a216107e96f90825190f10632e
|
||||
WEB_BRANCH=stable-12.3
|
||||
@@ -38,9 +38,10 @@ TRAEFIK_ACME_CASERVER=
|
||||
# Disable only for testing purposes.
|
||||
# Note: the leading colon is required to enable the service.
|
||||
OCIS=:ocis.yml
|
||||
# The oCIS container image type, must not be undefined.
|
||||
# The oCIS container image.
|
||||
# For production releases: "owncloud/ocis"
|
||||
# For rolling releases: "owncloud/ocis-rolling"
|
||||
# Defaults to production if not set otherwise
|
||||
OCIS_DOCKER_IMAGE=owncloud/ocis
|
||||
# The oCIS container version.
|
||||
# Defaults to "latest" and points to the latest stable tag.
|
||||
@@ -185,11 +186,6 @@ KEYCLOAK_TRACING=
|
||||
# Note: the leading colon is required to enable the service.
|
||||
#KEYCLOAK=:keycloak.yml
|
||||
|
||||
### oCIS Vault Storage Settings ###
|
||||
# Enable the oCIS vault storage
|
||||
# Note: the leading colon is required to enable the service.
|
||||
#VAULT_STORAGE=:vault-storage.yml
|
||||
|
||||
|
||||
## Default Enabled Services ##
|
||||
|
||||
@@ -301,4 +297,4 @@ MAIL_SERVER_DOCKER_TAG=v1.29.3
|
||||
# This MUST be the last line as it assembles the supplemental compose files to be used.
|
||||
# ALL supplemental configs must be added here, whether commented or not.
|
||||
# Each var must either be empty or contain :path/file.yml
|
||||
COMPOSE_FILE=docker-compose.yml${OCIS:-}${TIKA:-}${S3NG:-}${S3NG_MINIO:-}${COLLABORA:-}${IMPORTER:-}${CLAMAV:-}${ONLYOFFICE:-}${EXTENSIONS:-}${UNZIP:-}${DRAWIO:-}${JSONVIEWER:-}${PROGRESSBARS:-}${EXTERNALSITES:-}${PHOTOADDON:-}${ADVANCEDSEARCH:-}${MAIL_SERVER:-}${MONITORING:-}${KEYCLOAK:-}${VAULT_STORAGE:-}
|
||||
COMPOSE_FILE=docker-compose.yml${OCIS:-}${TIKA:-}${S3NG:-}${S3NG_MINIO:-}${COLLABORA:-}${IMPORTER:-}${CLAMAV:-}${ONLYOFFICE:-}${EXTENSIONS:-}${UNZIP:-}${DRAWIO:-}${JSONVIEWER:-}${PROGRESSBARS:-}${EXTERNALSITES:-}${PHOTOADDON:-}${ADVANCEDSEARCH:-}${MAIL_SERVER:-}${MONITORING:-}${KEYCLOAK:-}
|
||||
@@ -12,7 +12,7 @@ services:
|
||||
GRAPH_AVAILABLE_ROLES: "b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5,a8d5fe5e-96e3-418d-825b-534dbdf22b99,fb6c3e19-e378-47e5-b277-9732f9de6e21,58c63c02-1d89-4572-916a-870abc5a1b7d,2d00ce52-1fc2-4dbc-8b95-a73b73395f5a,1c996275-f1c9-4e71-abdf-a42f6495e960,312c0871-5ef7-4b3a-85b6-0e4074c64049,aa97fe03-7980-45ac-9e50-b325749fd7e6"
|
||||
|
||||
collaboration:
|
||||
image: ${OCIS_DOCKER_IMAGE}:${OCIS_DOCKER_TAG}
|
||||
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG}
|
||||
networks:
|
||||
ocis-net:
|
||||
depends_on:
|
||||
|
||||
@@ -6,7 +6,7 @@ services:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
ocis:
|
||||
image: ${OCIS_DOCKER_IMAGE}:${OCIS_DOCKER_TAG}
|
||||
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG}
|
||||
# changelog: https://github.com/owncloud/ocis/tree/master/changelog
|
||||
# release notes: https://doc.owncloud.com/ocis_release_notes.html
|
||||
networks:
|
||||
|
||||
@@ -7,7 +7,7 @@ services:
|
||||
- ${ONLYOFFICE_DOMAIN:-onlyoffice.owncloud.test}
|
||||
|
||||
collaboration-oo:
|
||||
image: ${OCIS_DOCKER_IMAGE}:${OCIS_DOCKER_TAG}
|
||||
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG}
|
||||
networks:
|
||||
ocis-net:
|
||||
depends_on:
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
services:
|
||||
ocis:
|
||||
environment:
|
||||
OCIS_MFA_ENABLED: true
|
||||
NATS_NATS_HOST: 0.0.0.0
|
||||
SETTINGS_GRPC_ADDR: ocis:9191
|
||||
OCIS_ENABLE_VAULT_MODE: true
|
||||
|
||||
storage-users-vault:
|
||||
image: ${OCIS_DOCKER_IMAGE}:${OCIS_DOCKER_TAG}
|
||||
networks:
|
||||
ocis-net:
|
||||
depends_on:
|
||||
ocis:
|
||||
condition: service_started
|
||||
command: ["storage-users", "server"]
|
||||
environment:
|
||||
OCIS_LOG_LEVEL: ${LOG_LEVEL:-info}
|
||||
OCIS_LOG_COLOR: "${LOG_PRETTY:-false}"
|
||||
OCIS_LOG_PRETTY: "${LOG_PRETTY:-false}"
|
||||
OCIS_GATEWAY_GRPC_ADDR: ocis:9142
|
||||
OCIS_EVENTS_ENDPOINT: ocis:9233
|
||||
OCIS_CACHE_STORE_NODES: ocis:9233
|
||||
MICRO_REGISTRY_ADDRESS: ocis:9233
|
||||
# configure vault mode for the storage users service
|
||||
STORAGE_USERS_ENABLE_VAULT_MODE: true
|
||||
STORAGE_USERS_SERVICE_NAME: storage-users-vault
|
||||
STORAGE_USERS_GRPC_ADDR: storage-users-vault:9285
|
||||
STORAGE_USERS_HTTP_ADDR: storage-users-vault:9286
|
||||
STORAGE_USERS_DATA_SERVER_URL: http://storage-users-vault:9286/data
|
||||
STORAGE_USERS_DEBUG_ADDR: storage-users-vault:9287
|
||||
STORAGE_USERS_OCIS_ROOT: /var/lib/ocis/storage/users-vault
|
||||
STORAGE_USERS_EVENTS_CONSUMER_GROUP: vault-dcfs
|
||||
volumes:
|
||||
# configure the .env file to use own paths instead of docker internal volumes
|
||||
- ${OCIS_CONFIG_DIR:-ocis-config}:/etc/ocis
|
||||
- ${OCIS_DATA_DIR:-ocis-data}:/var/lib/ocis
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
@@ -6,7 +6,7 @@ services:
|
||||
condition: service_completed_successfully
|
||||
|
||||
advanced-search-init:
|
||||
image: owncloud/web-extensions:advanced-search-0.3.0
|
||||
image: owncloud/web-extensions:advanced-search-0.2.0
|
||||
user: root
|
||||
volumes:
|
||||
- ocis-apps:/apps
|
||||
|
||||
@@ -6,7 +6,7 @@ services:
|
||||
condition: service_completed_successfully
|
||||
|
||||
drawio-init:
|
||||
image: owncloud/web-extensions:draw-io-0.4.4
|
||||
image: owncloud/web-extensions:draw-io-0.3.3
|
||||
user: root
|
||||
volumes:
|
||||
- ocis-apps:/apps
|
||||
|
||||
Loaded 100 of 966 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user