mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
a9e29279ea
Squash commit of storybook addition to aid design system documentation efforts. The older commit titles were: * Initial storybook commit * Fix documentation.json links * Don't track documentation.json in git * Enable sass in storybook * Initial version of a story that uses angular components * Remove example stories, clean up button story * More example stories * Fix sb build * Always use dev * Try without auth header * Update workflow name * More logs * Check if token set * Use release/storybook branch for testing * Send ref input to workflow * Escape input to curl call * Adding logging * Different type of escaping * Fix JOSN * Use dev branch for opf/design-system storybook publishing * Add plugin to message path to parent window * Remove extraneous story * Add a ton of docs * Update stories * Fix syntax error caused by multiple newlines inside of a JSX component * Add text-field story * Add basic html stories that don't work yet * Try to get plain HTML examples working * HTML Examples work, but slowly revert to components anyway * Fix HTML examples * Remove extraneous files * Put storybook eslint rules back in * Improve docs * Show docs tab by default * Add pullpreview for storybook * Use the same pullpreview tag for both storybook and normal deployments * Change name of second pullpreview workflow * Pin node version to 16.17.0 * Initial update to docs Added/updated: Foundation pages: - Colours (major update) - Shadows (minor) - Typography (new) Blocks - Checkbox (minor) - Action bar (major) - Buttons (new) - Link (major) - Modal Dialogue (new) - Selector Field (new) * Make sure all code is available during storybook pp build * Change storybook pullpreview file name * Add production target to docker-compose sb pp * Fix acme check for sb pp * Only run cd-storybook on dev branch * Run without https on 8080 * Added intro and new page - Introduction renamed to "Design System", page rewritten completely - Added page "Devices and Accessibility" * Remove domain from caddy * Add port to listen command * Remove double pullpreview workflows * Added Divider component * Change sorting of stories * Update section titles and order for styles and blocks * add extra action bar story * Updated organising + new page - Updated organisation into Styles, Components and Patterns. - Added page "Using Storybook" (mostly a skeleton for now) * Added note about colours not being implemented yet * Minor Co-authored-by: Parimal Satyal <88370597+psatyal@users.noreply.github.com>
43 lines
1.7 KiB
YAML
43 lines
1.7 KiB
YAML
name: pullpreview
|
|
|
|
on:
|
|
schedule:
|
|
# this is used to make sure no dangling resources are left
|
|
- cron: "30 2 * * *"
|
|
pull_request:
|
|
types: [labeled, unlabeled, synchronize, closed, reopened]
|
|
|
|
jobs:
|
|
deploy:
|
|
if: github.repository == 'opf/openproject' && ( github.event_name == 'schedule' || github.event_name == 'push' || github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview') )
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Generate .env.pullpreview file
|
|
run: |
|
|
echo "OP_ADMIN_USER_SEEDER_FORCE_PASSWORD_CHANGE=off" >> .env.pullpreview
|
|
echo "OPENPROJECT_SHOW__SETTING__MISMATCH__WARNING=false" >> .env.pullpreview
|
|
echo "OPENPROJECT_FEATURE__STORAGES__MODULE__ACTIVE=true" >> .env.pullpreview
|
|
- name: Boot as BIM edition
|
|
if: contains(github.ref, 'bim/') || contains(github.head_ref, 'bim/')
|
|
run: |
|
|
echo "OPENPROJECT_EDITION=bim" >> .env.pullpreview
|
|
- name: Prepare docker-compose files
|
|
run: |
|
|
cp ./docker/pullpreview/docker-compose.yml ./docker-compose.pullpreview.yml
|
|
cp ./docker/prod/Dockerfile ./Dockerfile
|
|
cp ./docker/pullpreview-storybook/Dockerfile ./Dockerfile-storybook
|
|
- uses: pullpreview/action@v5
|
|
with:
|
|
admins: crohr,HDinger,machisuji,oliverguenther,ulferts,wielinde,b12f,cbliard
|
|
always_on: dev
|
|
compose_files: docker-compose.pullpreview.yml
|
|
instance_type: large_2_0
|
|
ports: 80,443,8080
|
|
default_port: 443
|
|
env:
|
|
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
|
|
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
|
|
AWS_REGION: eu-central-1
|