Skip to content

Commit

Permalink
Merge pull request #8612 from weseek/master
Browse files Browse the repository at this point in the history
Release v7.0.0
  • Loading branch information
yuki-takei authored Mar 27, 2024
2 parents c192520 + 4e508be commit e0af428
Show file tree
Hide file tree
Showing 1,173 changed files with 30,825 additions and 39,374 deletions.
6 changes: 4 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------

FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-20

# The node image includes a non-root user with sudo access. Use the
# "remoteUser" property in devcontainer.json to use it. On Linux, update
Expand Down Expand Up @@ -37,7 +37,9 @@ RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

RUN apt-get update \
&& apt-get -y install --no-install-recommends git-lfs \
&& apt-get -y install --no-install-recommends \
git-lfs \
iputils-ping net-tools dnsutils \

# Uncomment below lines to install Chromium
# --- works only on AMD64 ---
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"eamodio.gitlens",
"github.vscode-pull-request-github",
"cschleiden.vscode-github-actions",
"mongodb.mongodb-vscode",
"msjsdiag.debugger-for-chrome",
"firefox-devtools.vscode-firefox-debug",
"editorconfig.editorconfig",
Expand All @@ -34,7 +35,7 @@
// "shutdownAction": "none",

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "yarn global add turbo node-gyp && yarn install",
"postCreateCommand": "git-lfs pull & turbo run bootstrap",

// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
Expand Down
38 changes: 2 additions & 36 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,10 @@ services:
image: mongo:6.0
restart: unless-stopped
ports:
- 27017:27017
- 27017
volumes:
- /data/db

ogp:
image: ghcr.io/weseek/growi-unique-ogp:latest
ports:
- 8088:8088
restart: unless-stopped
tty: true

# This container requires '../../growi-docker-compose' repository
# cloned from https://github.com/weseek/growi-docker-compose.git
elasticsearch:
Expand All @@ -52,7 +45,7 @@ services:
- version=8.7.0
restart: unless-stopped
ports:
- 9200:9200
- 9200
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
Expand All @@ -65,33 +58,6 @@ services:
- /usr/share/elasticsearch/data
- ../../growi-docker-compose/elasticsearch/v8/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml

#need to adjust kibana version based on elasticsearch version (use same version as elasticsearch version)
kibana:
image: docker.elastic.co/kibana/kibana:8.7.0
restart: unless-stopped
environment:
ELASTICSEARCH_HOSTS: 'http://elasticsearch:9200'
ports:
- 5601:5601
depends_on:
- elasticsearch

# This container requires '../../growi-docker-compose' repository
# cloned from https://github.com/weseek/growi-docker-compose.git
hackmd:
build:
context: ../../growi-docker-compose/hackmd
restart: unless-stopped
environment:
- GROWI_URI=http://localhost:3000
# define 'storage' option value
# see https://github.com/sequelize/cli/blob/7160d0/src/helpers/config-helper.js#L192
- CMD_DB_URL=sqlite://dummyhost/hackmd/sqlite/codimd.db
- CMD_CSP_ENABLE=false
ports:
- 3010:3000
volumes:
- /files/sqlite
volumes:
node_modules:
node_modules_app:
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows-archived/release-rc-v7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Release Docker Images for RC (for dev/7.0.x)

on:
push:
branches:
- dev/7.0.x


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:

determine-tags:
runs-on: ubuntu-latest

outputs:
TAGS: ${{ steps.meta.outputs.tags }}
TAGS_GHCR: ${{ steps.meta-ghcr.outputs.tags }}

steps:
- uses: actions/checkout@v3

- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
id: package-json

- name: Docker meta for docker.io
uses: docker/metadata-action@v4
id: meta
with:
images: docker.io/weseek/growi
sep-tags: ','
tags: |
type=raw,value=${{ steps.package-json.outputs.packageVersion }}.{{sha}}
- name: Docker meta for ghcr.io
uses: docker/metadata-action@v4
id: meta-ghcr
with:
images: ghcr.io/weseek/growi
sep-tags: ','
tags: |
type=raw,value=${{ steps.package-json.outputs.packageVersion }}.{{sha}}
build-image-rc:
uses: weseek/growi/.github/workflows/reusable-app-build-image.yml@master
with:
image-name: weseek/growi
tag-temporary: latest-rc
secrets:
AWS_ROLE_TO_ASSUME_FOR_OIDC: ${{ secrets.AWS_ROLE_TO_ASSUME_FOR_OIDC }}


publish-image-rc:
needs: [determine-tags, build-image-rc]

uses: weseek/growi/.github/workflows/reusable-app-create-manifests.yml@master
with:
tags: ${{ needs.determine-tags.outputs.TAGS }}
registry: docker.io
image-name: weseek/growi
tag-temporary: latest-rc
secrets:
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}

publish-image-rc-ghcr:
needs: [determine-tags, build-image-rc]

uses: weseek/growi/.github/workflows/reusable-app-create-manifests.yml@master
with:
tags: ${{ needs.determine-tags.outputs.TAGS_GHCR }}
registry: ghcr.io
image-name: weseek/growi
tag-temporary: latest-rc
secrets:
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_ON_GITHUB_PASSWORD }}

14 changes: 7 additions & 7 deletions .github/workflows/ci-app-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,35 +48,35 @@ concurrency:

jobs:

test-prod-node16:
test-prod-node18:
uses: weseek/growi/.github/workflows/reusable-app-prod.yml@master
with:
node-version: 16.x
node-version: 18.x
skip-cypress: true
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}


test-prod-node18:
test-prod-node20:
uses: weseek/growi/.github/workflows/reusable-app-prod.yml@master
with:
node-version: 18.x
node-version: 20.x
skip-cypress: ${{ contains( github.event.pull_request.labels.*.name, 'dependencies' ) }}
cypress-report-artifact-name: Cypress report
cypress-config-video: ${{ inputs.cypress-config-video || false }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}


run-reg-suit-node18:
needs: [test-prod-node18]
run-reg-suit-node20:
needs: [test-prod-node20]

uses: weseek/growi/.github/workflows/reusable-app-reg-suit.yml@master

if: always()

with:
node-version: 18.x
node-version: 20.x
skip-reg-suit: ${{ contains( github.event.pull_request.labels.*.name, 'dependencies' ) }}
cypress-report-artifact-name: Cypress report
secrets:
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/ci-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -43,20 +43,20 @@ jobs:
with:
path: |
**/node_modules
key: node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/app/package.json') }}
key: node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/app/package.json') }}
restore-keys: |
node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-
- name: Restore dist
uses: actions/cache/restore@v3
with:
path: |
**/.turbo
**/dist
key: dist-app-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
key: dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
restore-keys: |
dist-app-ci-${{ runner.OS }}-node${{ matrix.node-version }}-
dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-
- name: Install dependencies
run: |
Expand Down Expand Up @@ -84,15 +84,15 @@ jobs:
path: |
**/.turbo
**/dist
key: dist-app-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
key: dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}


test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

services:
mongodb:
Expand All @@ -115,20 +115,20 @@ jobs:
with:
path: |
**/node_modules
key: node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/app/package.json') }}
key: node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/app/package.json') }}
restore-keys: |
node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-
- name: Restore dist
uses: actions/cache/restore@v3
with:
path: |
**/.turbo
**/dist
key: dist-app-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
key: dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
restore-keys: |
dist-app-ci-${{ runner.OS }}-node${{ matrix.node-version }}-
dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-
- name: Install dependencies
run: |
Expand Down Expand Up @@ -166,15 +166,15 @@ jobs:
path: |
**/.turbo
**/dist
key: dist-app-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
key: dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}


launch-dev:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

services:
mongodb:
Expand All @@ -197,10 +197,10 @@ jobs:
with:
path: |
**/node_modules
key: node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/app/package.json') }}
key: node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/app/package.json') }}
restore-keys: |
node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-
- name: Restore dist
uses: actions/cache/restore@v3
Expand All @@ -209,9 +209,9 @@ jobs:
**/.turbo
**/dist
${{ github.workspace }}/apps/app/.next
key: dist-app-dev-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
key: dist-app-7.x-dev-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
restore-keys: |
dist-app-dev-${{ runner.OS }}-node${{ matrix.node-version }}-
dist-app-7.x-dev-${{ runner.OS }}-node${{ matrix.node-version }}-
- name: Install dependencies
run: |
Expand Down Expand Up @@ -244,4 +244,4 @@ jobs:
**/.turbo
**/dist
${{ github.workspace }}/apps/app/.next
key: dist-app-dev-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
key: dist-app-7.x-dev-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
6 changes: 3 additions & 3 deletions .github/workflows/ci-slackbot-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

services:
mysql:
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

services:
mysql:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/list-unhealthy-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'

- name: List branches
id: list-branches
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-slackbot-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

Expand Down
Loading

0 comments on commit e0af428

Please sign in to comment.