Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .docker/website/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ FROM nginx:alpine

RUN rm /etc/nginx/conf.d/default.conf

COPY ./website/config/conf.d /etc/nginx/conf.d
COPY ./config/conf.d /etc/nginx/conf.d

COPY ./website/out /usr/share/nginx/html
COPY ./out /usr/share/nginx/html
26 changes: 5 additions & 21 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,20 @@ jobs:
username: ${{ secrets.CONTAINER_REG_USERNAME }}
password: ${{ secrets.CONTAINER_REG_PASSWORD }}

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

- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: "yarn"
cache-dependency-path: "website/yarn.lock"

- name: Cache Yarn Packages
- name: Cache Next.js Build Artifacts
uses: actions/cache@v5
with:
path: |
website/.yarn/cache
website/.next/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('website/yarn.lock') }}
path: website/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('website/yarn.lock') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Cache Optimized Images
uses: actions/cache@v5
with:
path: website/.next/cache/images
key: ${{ runner.os }}-optimized-images-${{ hashFiles('website/public/images/**', 'website/public/docs/**/*.png', 'website/public/docs/**/*.jpg', 'website/public/docs/**/*.webp') }}
restore-keys: |
${{ runner.os }}-optimized-images-
${{ runner.os }}-nextjs-${{ hashFiles('website/yarn.lock') }}-

- name: Install Packages
run: yarn --immutable --network-timeout 100000
Expand All @@ -69,10 +57,6 @@ jobs:
unzip -P ${{ secrets.ICON_PASSWORD }} src/images/icons.zip -d src/images/
working-directory: website

- name: Clean Website
run: yarn clean
working-directory: website

- name: Optimize Images
run: yarn optimize-images
working-directory: website
Expand All @@ -84,7 +68,7 @@ jobs:
- name: Build WebSite Container
uses: docker/build-push-action@v5
with:
context: .
context: ./website
file: .docker/website/dockerfile
push: true
tags: ${{ secrets.CONTAINER_REG_DOMAIN }}/ccc-website-${{ github.ref_name }}:${{ github.run_id }}
Expand Down
5 changes: 5 additions & 0 deletions website/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!out
!out/**
!config/conf.d
!config/conf.d/**
Loading