Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Sep 12, 2023
2 parents 2ae0aa6 + fc9438b commit ade3d25
Show file tree
Hide file tree
Showing 20 changed files with 1,327 additions and 188 deletions.
30 changes: 0 additions & 30 deletions .devops/azure-pipelines.sonar-hotchocolate.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .devops/deploy-website-cluster.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .devops/deploy-website.yml

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Publish Website

# When to trigger the workflow
on:
push:
branches:
- main
paths:
- .github/workflows/publish-website.yml
- .docker/website/**
- website/**

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Docker Login
uses: docker/login-action@v2
with:
registry: ${{ secrets.CONTAINER_REG_URL }}
username: ${{ secrets.CONTAINER_REG_USERNAME }}
password: ${{ secrets.CONTAINER_REG_PASSWORD }}

- run: echo ${{ secrets.CONTAINER_REG_URL }}

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '18.x'
cache: 'yarn'
cache-dependency-path: 'website/yarn.lock'

- name: Cache Yarn Packages
uses: actions/cache@v3
with:
path: |
website/.yarn/cache
website/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('website/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Packages
run: yarn --immutable --network-timeout 100000
working-directory: website

- name: Build Website
run: yarn build --prefix-paths
working-directory: website

- name: Build WebSite Container
uses: docker/build-push-action@v2
with:
context: .
file: .docker/website/dockerfile
push: true
tags: ${{ secrets.CONTAINER_REG_DOMAIN }}/ccc-website-${{ github.ref_name }}:${{ github.run_id }}

- name: Deploy to Azure WebApp
uses: azure/webapps-deploy@v2
with:
app-name: ccc-p-us1-website
slot-name: 'production'
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}
images: ${{ secrets.CONTAINER_REG_DOMAIN }}/ccc-website-${{ github.ref_name }}:${{ github.run_id }}

Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 0 additions & 18 deletions website/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,24 +156,6 @@ module.exports = {
icon: `src/images/chillicream-favicon.png`,
},
},
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: "G-RSKJWN1W8V",
includeInDevelopment: false,
defaultDataLayer: {
platform: "gatsby",
},
enableWebVitalsTracking: true,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-72800164-1",
anonymize: true,
},
},
{
resolve: `gatsby-plugin-sitemap`,
options: {
Expand Down
2 changes: 0 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
"gatsby": "^3.6.2",
"gatsby-plugin-disqus": "^1.2.2",
"gatsby-plugin-feed": "^3.6.0",
"gatsby-plugin-google-analytics": "^5.3.0",
"gatsby-plugin-google-tagmanager": "^5.3.1",
"gatsby-plugin-graphql-codegen": "^3.0.0",
"gatsby-plugin-image": "^1.6.0",
"gatsby-plugin-manifest": "^3.6.0",
Expand Down
20 changes: 20 additions & 0 deletions website/src/components/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,26 @@ export const Footer: FC = () => {
<NavLink to="/services/support">Support</NavLink>
</Navigation>
</Links>
<Links>
<Title>About</Title>
<Navigation>
<NavLink prefetch={false} to="mailto:[email protected]">
Contact
</NavLink>
<NavLink prefetch={false} to="/legal/acceptable-use-policy.html">
Acceptable Use
</NavLink>
<NavLink prefetch={false} to="/legal/cookie-policy.html">
Cookie Policy
</NavLink>
<NavLink prefetch={false} to="/legal/privacy-policy.html">
Privacy Policy
</NavLink>
<NavLink prefetch={false} to="/legal/terms-of-service.html">
Terms of Service
</NavLink>
</Navigation>
</Links>
</Section>
<Section>
<Copyright>
Expand Down
4 changes: 2 additions & 2 deletions website/src/components/misc/cookie-consent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export const CookieConsent: FC = () => {
<Container>
<Message id="cookieconsent:desc">
This website uses cookies to ensure you get the best experience on
our website.{" "}
<LearnMoreLink to="https://cookiesandyou.com">
our website.
<LearnMoreLink prefetch={false} to="/legal/cookie-policy.html">
Learn more
</LearnMoreLink>
</Message>
Expand Down
8 changes: 1 addition & 7 deletions website/src/components/misc/link.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { GatsbyLinkProps, Link as GatsbyLink } from "gatsby";
import { OutboundLink } from "gatsby-plugin-google-analytics";
import React, { FC } from "react";

export const Link: FC<
Expand All @@ -16,11 +15,6 @@ export const Link: FC<
<a href={to} {...rest} />
)
) : (
<OutboundLink
href={to}
target="_blank"
rel="noopener noreferrer"
{...rest}
/>
<a href={to} target="_blank" rel="noopener noreferrer" {...rest} />
);
};
3 changes: 1 addition & 2 deletions website/src/pages/products/bananacakepop.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { SrOnly } from "@/components/misc/sr-only";
import { OutboundLink } from "gatsby-plugin-google-analytics";
import React, {
FC,
MouseEventHandler,
Expand Down Expand Up @@ -555,7 +554,7 @@ const DownloadButtonContainer = styled.div`
overflow: visible;
`;

const DownloadLink = styled(OutboundLink).attrs({
const DownloadLink = styled.a.attrs({
rel: "noopener noreferrer",
})`
display: flex;
Expand Down
1 change: 0 additions & 1 deletion website/static/google479bcd6a898ecdf0.html

This file was deleted.

Loading

0 comments on commit ade3d25

Please sign in to comment.