forked from mriedmann/humhub-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump super-linter/super-linter from 6 to 7
Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 6 to 7. - [Release notes](https://github.com/super-linter/super-linter/releases) - [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md) - [Commits](super-linter/super-linter@v6...v7) --- updated-dependencies: - dependency-name: super-linter/super-linter dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
- Loading branch information
1 parent
68f12e9
commit 344734b
Showing
10 changed files
with
104 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
inputs: | ||
ssh_debug_enabled: | ||
type: boolean | ||
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | ||
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" | ||
required: false | ||
default: false | ||
|
||
|
@@ -109,14 +109,14 @@ jobs: | |
uses: actions/download-artifact@v4 | ||
with: | ||
name: build-${{ matrix.version }}-git-${{ env.GIT_REV }}-allinone | ||
- name: Load images | ||
- name: Load images | ||
run: | | ||
docker load --input "build-${{ matrix.version }}-git-${GIT_REV}-allinone.tar.gz" | ||
- name: replace image | ||
run: sed -i "s/docker.io\/mriedmann\/humhub:latest/ghcr.io\/${CI_REPOSITORY_OWNER}\/humhub:${CI_REF_NAME_SLUG}-${HUMHUB_VERSION}-git-${GIT_REV}-allinone/g" docker-compose.yml | ||
- name: Spin up services | ||
run: docker compose -f docker-compose.yml up -d | ||
- name: Wait | ||
- name: Wait | ||
run: sleep 120 | ||
- name: Check status | ||
run: docker ps -a | ||
|
@@ -128,7 +128,8 @@ jobs: | |
- name: Test | ||
run: curl 'http://localhost:8080/' --location --fail --silent | grep 'Sign in</button>' -q || ( curl 'http://localhost:8080/' --trace - ; exit 1;) | ||
- name: Test Email | ||
run: docker compose exec -T humhub php /var/www/localhost/htdocs/protected/yii test/email '[email protected]' --interactive=0 \ | ||
run: | ||
docker compose exec -T humhub php /var/www/localhost/htdocs/protected/yii test/email '[email protected]' --interactive=0 \ | ||
| grep 'Message successfully sent!' -q | ||
- name: Collect HumHub server logs | ||
if: ${{ always() }} | ||
|
@@ -160,7 +161,7 @@ jobs: | |
uses: actions/download-artifact@v4 | ||
with: | ||
name: build-${{ matrix.version }}-git-${{ env.GIT_REV }}-nginx | ||
- name: Load images | ||
- name: Load images | ||
run: | | ||
docker load --input "build-${{ matrix.version }}-git-${GIT_REV}-phponly.tar.gz" | ||
docker load --input "build-${{ matrix.version }}-git-${GIT_REV}-nginx.tar.gz" | ||
|
@@ -170,7 +171,7 @@ jobs: | |
sed -i "s/docker.io\/mriedmann\/humhub:stable-phponly/ghcr.io\/${CI_REPOSITORY_OWNER}\/humhub:${CI_REF_NAME_SLUG}-${HUMHUB_VERSION}-git-${GIT_REV}-phponly/g" docker-compose.prod.yml | ||
- name: Spin up services | ||
run: docker compose -f docker-compose.prod.yml up -d | ||
- name: Wait | ||
- name: Wait | ||
run: sleep 120 | ||
- name: Check status | ||
run: docker ps -a | ||
|
@@ -215,7 +216,7 @@ jobs: | |
uses: actions/download-artifact@v4 | ||
with: | ||
name: build-${{ matrix.version }}-git-${{ env.GIT_REV }}-${{ matrix.target }} | ||
- name: Load, retag and Push images | ||
- name: Load, retag and Push images | ||
run: | | ||
export REPO_OWNER="ghcr.io/${GITHUB_REPOSITORY_OWNER}" | ||
export IMAGE_URL="${REPO_OWNER}/humhub:${CI_REF_NAME_SLUG}-${HUMHUB_VERSION}-git-${GIT_REV}-${{ matrix.target }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
name: "Update robots.txt" | ||
on: | ||
schedule: | ||
- cron: "0 0 * * 6" # At 00:00 on Saturday | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 6" # At 00:00 on Saturday | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update: | ||
name: "Update robots.txt" | ||
update: | ||
name: "Update robots.txt" | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Pull latest robots | ||
run: | | ||
curl -X POST https://api.darkvisitors.com/robots-txts \ | ||
-H "Authorization: Bearer ${{ secrets.DarkVisitorsBearer }}" \ | ||
-H "Content-Type: application/json" \ | ||
--data-raw '{"agent_types": ["AI Assistant", "AI Data Scraper", "AI Search Crawler", "Undocumented AI Agent"]}' \ | ||
--output ./base/var/www/localhost/htdocs/robots.txt | ||
- name: Pull latest robots | ||
run: | | ||
curl -X POST https://api.darkvisitors.com/robots-txts \ | ||
-H "Authorization: Bearer ${{ secrets.DarkVisitorsBearer }}" \ | ||
-H "Content-Type: application/json" \ | ||
--data-raw '{"agent_types": ["AI Assistant", "AI Data Scraper", "AI Search Crawler", "Undocumented AI Agent"]}' \ | ||
--output ./base/var/www/localhost/htdocs/robots.txt | ||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
message: "chore: generate robots.txt" | ||
default_author: github_actions | ||
push: true | ||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
message: "chore: generate robots.txt" | ||
default_author: github_actions | ||
push: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
{"default": true, "MD013": null, "MD028": null, "MD033": null} | ||
{ "default": true, "MD013": null, "MD028": null, "MD033": null } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ before_install: | |
script: | ||
- curl http://localhost:8080/ -L --fail -s | grep 'Sign in</button>' -q | ||
- docker-compose exec -w '/var/www/localhost/htdocs/protected' -T humhub php yii test/email '[email protected]' \ | ||
| grep 'Message successfully sent!' -q | ||
| grep 'Message successfully sent!' -q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# NOTE: This files shows a possible production setup. | ||
# If you are not familiar with handling containers in production, please | ||
# consider a different approach of hosting. This setup can lead to | ||
# errors and loss of production data if handled incorrectly. Currently | ||
# If you are not familiar with handling containers in production, please | ||
# consider a different approach of hosting. This setup can lead to | ||
# errors and loss of production data if handled incorrectly. Currently | ||
|
||
# WARNING: Currently, container based setups are not officially supported by Humhub GmbH. | ||
# Use at your own risk! | ||
--- | ||
version: '3.1' | ||
version: "3.1" | ||
services: | ||
nginx: | ||
image: docker.io/mriedmann/humhub:stable-nginx | ||
|
@@ -25,21 +25,21 @@ services: | |
humhub: | ||
image: docker.io/mriedmann/humhub:stable-phponly | ||
expose: | ||
- '9000' | ||
- "9000" | ||
environment: | ||
HUMHUB_DB_USER: ${HUMHUB_DB_USER} | ||
HUMHUB_DB_PASSWORD: ${HUMHUB_DB_PASSWORD} | ||
HUMHUB_DB_HOST: 'db' | ||
HUMHUB_DB_NAME: 'humhub' | ||
HUMHUB_DB_HOST: "db" | ||
HUMHUB_DB_NAME: "humhub" | ||
HUMHUB_AUTO_INSTALL: 1 | ||
# HUMHUB_DEBUG: 1 # you can currently not use debug in prod | ||
HUMHUB_PROTO: 'https' | ||
HUMHUB_HOST: 'localhost' | ||
# HUMHUB_DEBUG: 1 # you can currently not use debug in prod | ||
HUMHUB_PROTO: "https" | ||
HUMHUB_HOST: "localhost" | ||
# Mailer install setup | ||
HUMHUB_MAILER_SYSTEM_EMAIL_ADDRESS: '[email protected]' | ||
HUMHUB_MAILER_SYSTEM_EMAIL_NAME: 'HumHub' | ||
HUMHUB_MAILER_TRANSPORT_TYPE: 'smtp' | ||
HUMHUB_MAILER_HOSTNAME: 'mailer' | ||
HUMHUB_MAILER_SYSTEM_EMAIL_ADDRESS: "[email protected]" | ||
HUMHUB_MAILER_SYSTEM_EMAIL_NAME: "HumHub" | ||
HUMHUB_MAILER_TRANSPORT_TYPE: "smtp" | ||
HUMHUB_MAILER_HOSTNAME: "mailer" | ||
HUMHUB_MAILER_PORT: 1025 | ||
#HUMHUB_MAILER_USERNAME: | ||
#HUMHUB_MAILER_PASSWORD: | ||
|
@@ -57,7 +57,7 @@ services: | |
- "assets:/var/www/localhost/htdocs/assets" | ||
- "modules:/var/www/localhost/htdocs/protected/modules" | ||
- "themes:/var/www/localhost/htdocs/themes" | ||
# - "${HUMHUB_VOLUME_CONFIG}:/var/www/localhost/htdocs/protected/config" | ||
# - "${HUMHUB_VOLUME_CONFIG}:/var/www/localhost/htdocs/protected/config" | ||
healthcheck: | ||
test: ["CMD", "php-fpm-healthcheck"] | ||
interval: 30s | ||
|
@@ -67,7 +67,7 @@ services: | |
image: mariadb:10.4 | ||
environment: | ||
MYSQL_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD} | ||
MYSQL_DATABASE: 'humhub' | ||
MYSQL_DATABASE: "humhub" | ||
MYSQL_USER: ${HUMHUB_DB_USER} | ||
MYSQL_PASSWORD: ${HUMHUB_DB_PASSWORD} | ||
volumes: | ||
|
@@ -87,17 +87,17 @@ services: | |
redis: | ||
image: redis:5.0-alpine | ||
expose: | ||
- '6379' | ||
# volumes: | ||
# - /srv/humhub/redis:/data | ||
- "6379" | ||
# volumes: | ||
# - /srv/humhub/redis:/data | ||
environment: | ||
- REDIS_PASSWORD=redis_password | ||
#- ALLOW_EMPTY_PASSWORD=yes | ||
healthcheck: | ||
test: ["CMD", "redis-cli", "ping"] | ||
volumes: | ||
uploads: { } | ||
assets: { } | ||
modules: { } | ||
themes: { } | ||
mysql: { } | ||
uploads: {} | ||
assets: {} | ||
modules: {} | ||
themes: {} | ||
mysql: {} |
Oops, something went wrong.