-
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 branch 'refs/heads/release' into SLB-222-Font-loading
- Loading branch information
Showing
178 changed files
with
6,748 additions
and
959 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
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
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 |
---|---|---|
|
@@ -18,4 +18,4 @@ jobs: | |
with: | ||
type: now | ||
target_branch: stage | ||
github_token: ${{ github.token }} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,9 @@ jobs: | |
steps: | ||
- name: Init check | ||
if: ${{ github.repository != 'AmazeeLabs/silverback-template'}} | ||
run: echo 'Please run the INIT script. See the root README.md for instructions.' && false | ||
run: | ||
echo 'Please run the INIT script. See the root README.md for | ||
instructions.' && false | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -19,6 +21,9 @@ jobs: | |
- name: Setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Check formatting | ||
run: pnpm test:format | ||
|
||
- name: TurboRepo local server | ||
uses: felixmosh/turborepo-gh-artifacts@v2 | ||
with: | ||
|
@@ -59,6 +64,8 @@ jobs: | |
storybookBaseDir: packages/ui | ||
onlyChanged: true | ||
exitOnceUploaded: true | ||
externals: | | ||
static/stories/webforms/** | ||
if: ${{ steps.chromatic-check.outputs.available == 'true' }} | ||
|
||
- name: Deploy storybook to netlify | ||
|
@@ -75,7 +82,9 @@ jobs: | |
|
||
- name: Merge release to prod (silverback-template only) | ||
uses: devmasx/[email protected] | ||
if: ${{ github.repository == 'AmazeeLabs/silverback-template' && github.ref == 'refs/heads/release'}} | ||
if: | ||
${{ github.repository == 'AmazeeLabs/silverback-template' && | ||
github.ref == 'refs/heads/release'}} | ||
with: | ||
type: now | ||
from_branch: release | ||
|
@@ -84,7 +93,9 @@ jobs: | |
|
||
docker_build: | ||
name: Docker Build | ||
if: startsWith(github.ref_name, 'test-all/') || startsWith(github.head_ref, 'test-all/') | ||
if: | ||
startsWith(github.ref_name, 'test-all/') || startsWith(github.head_ref, | ||
'test-all/') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
|
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
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
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
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,7 +15,7 @@ RUN npm install -g [email protected] && pnpm config set store-dir /tmp/cache/pnpm | |
|
||
# Copy pnpm lockfile and install dependencies. | ||
COPY pnpm-lock.yaml .npmrc /app/ | ||
#COPY patches /app/patches | ||
# COPY patches /app/patches | ||
RUN --mount=type=cache,target=/tmp/cache pnpm fetch && \ | ||
# There is a bug in pnpm: `pnpm fetch` creates _some_ node_modules folders | ||
# with _some_ packages. This can lead to an incomplete package installation. | ||
|
@@ -47,6 +47,7 @@ RUN --mount=type=cache,target=/tmp/cache pnpm i && \ | |
# Deploy apps. | ||
RUN --mount=type=cache,target=/tmp/cache pnpm deploy --filter "@custom/cms" /tmp/.deploy/cms --prod | ||
RUN --mount=type=cache,target=/tmp/cache pnpm deploy --filter "@custom/website" /tmp/.deploy/website --prod | ||
RUN --mount=type=cache,target=/tmp/cache pnpm deploy --filter "@custom/preview" /tmp/.deploy/preview --prod | ||
|
||
# ==================================================================================================== | ||
# CLI IMAGE | ||
|
@@ -82,11 +83,22 @@ FROM uselagoon/nginx-drupal as nginx | |
|
||
COPY --from=cli /app /app | ||
RUN cd /app/web && cp ../node_modules/@custom/ui/build/gutenberg.css . | ||
RUN cd /app/web && cp ../node_modules/@custom/ui/build/iframe.css . | ||
COPY .lagoon/nginx-conf/redirects-map.conf /etc/nginx/redirects-map.conf | ||
|
||
WORKDIR /app | ||
ENV WEBROOT=web | ||
|
||
# ==================================================================================================== | ||
# PREVIEW IMAGE | ||
# ==================================================================================================== | ||
|
||
FROM uselagoon/node-18:23.12.0 as preview | ||
|
||
RUN npm install -g [email protected] | ||
COPY --from=builder /tmp/.deploy/preview /app | ||
CMD pnpm start | ||
|
||
# ==================================================================================================== | ||
# PUBLISHER IMAGE | ||
# ==================================================================================================== | ||
|
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ apps | |
packages | ||
tests | ||
.turbo | ||
pnpm-lock.yaml |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.