-
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.
Merge pull request #384 from AmazeeLabs/waku-starter-upgrade-2024-06-12
Upgrade to current rease 2024-12-06
- Loading branch information
Showing
239 changed files
with
7,078 additions
and
4,688 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: FE Build | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
publisher_payload: | ||
description: Publisher payload | ||
required: true | ||
env: | ||
description: Environment | ||
required: true | ||
|
||
run-name: 'FE Build [env: ${{ inputs.env }}]' | ||
|
||
concurrency: | ||
group: fe_build_${{ inputs.env }} | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: TurboRepo local server | ||
uses: felixmosh/turborepo-gh-artifacts@v2 | ||
with: | ||
server-token: 'local' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Prepare | ||
run: SKIP_DRUPAL_INSTALL=1 pnpm turbo:prep | ||
env: | ||
TURBO_API: 'http://127.0.0.1:9080' | ||
TURBO_TOKEN: 'local' | ||
TURBO_TEAM: 'local' | ||
|
||
- name: Publisher | ||
uses: AmazeeLabs/publisher-action@4371b4a90a9fe2c86248e76c0f428e39abf6b610 | ||
with: | ||
success_env_var_name: BUILD_IS_SUCCESSFUL | ||
cache_paths: | | ||
apps/website/.cache | ||
apps/website/public | ||
cache_key: 'fe-build-${{ inputs.env }}' | ||
|
||
- name: Build & deploy | ||
run: | | ||
set -ex | ||
cd apps/website | ||
# Build | ||
if test -d public; then | ||
echo "Single build" | ||
pnpm build:gatsby | ||
else | ||
echo "Double build" | ||
# To mitigate Gatsby bug: | ||
# The first incremental build rewrites compilation hashes even if | ||
# there are no content changes. | ||
pnpm build:gatsby | ||
pnpm build:gatsby | ||
fi | ||
# Deploy | ||
pnpm netlify env:set AWS_LAMBDA_JS_RUNTIME nodejs18.x | ||
pnpm netlify env:set DRUPAL_EXTERNAL_URL $DRUPAL_EXTERNAL_URL | ||
pnpm netlify deploy --cwd=. --dir=apps/website/public --prodIfUnlocked | ||
# Report success to Publisher | ||
echo "BUILD_IS_SUCCESSFUL=1" >> $GITHUB_ENV | ||
env: | ||
TURBO_API: 'http://127.0.0.1:9080' | ||
TURBO_TOKEN: 'local' | ||
TURBO_TEAM: 'local' |
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 |
---|---|---|
|
@@ -17,5 +17,6 @@ jobs: | |
uses: devmasx/[email protected] | ||
with: | ||
type: now | ||
from_branch: dev | ||
target_branch: stage | ||
github_token: ${{ github.token }} |
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 was deleted.
Oops, something went wrong.
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,4 +10,4 @@ dts | |
apps/website/.env | ||
.DS_Store | ||
.turbo | ||
_local | ||
/_local |
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 |
---|---|---|
|
@@ -6,13 +6,13 @@ RUN bash -c 'VERSION="18.19.0" \ | |
|
||
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix | ||
|
||
RUN sudo update-alternatives --set php $(which php8.2) | ||
RUN sudo install-packages php8.2-gd php8.2-mbstring php8.2-curl php8.2-sqlite3 php8.2-zip php8.2-xdebug php8.2-imagick | ||
RUN sudo update-alternatives --set php $(which php8.3) | ||
RUN sudo install-packages php8.3-gd php8.3-mbstring php8.3-curl php8.3-sqlite3 php8.3-zip php8.3-xdebug php8.3-imagick | ||
RUN pnpx [email protected] install-deps | ||
RUN pnpx [email protected] install | ||
RUN npm install -g [email protected] @withgraphite/graphite-cli | ||
|
||
COPY .gitpod/xdebug.ini /etc/php/8.2/mods-available/xdebug.ini | ||
COPY .gitpod/xdebug.ini /etc/php/8.3/mods-available/xdebug.ini | ||
RUN curl -fsSL https://deno.land/x/install/install.sh | sh | ||
RUN /home/gitpod/.deno/bin/deno completions bash > /home/gitpod/.bashrc.d/90-deno && \ | ||
echo 'export DENO_INSTALL="/home/gitpod/.deno"' >> /home/gitpod/.bashrc.d/90-deno && \ | ||
|
4 changes: 2 additions & 2 deletions
4
.idea/runConfigurations/Website_Dev.xml → .idea/runConfigurations/Publisher_Dev.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...Configurations/Website_Open_Publisher.xml → .idea/runConfigurations/Publisher_Open.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
.idea/runConfigurations/website__dev.xml → .idea/runConfigurations/publisher__dev.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
.idea/runConfigurations/website__open.xml → .idea/runConfigurations/publisher__open.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.