Skip to content
Open
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
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
pull_request:
push:
branches:
- main
tags:
- 'v*.*.*'

jobs:
release-next-container:
uses: radiorabe/actions/.github/workflows/[email protected]
with:
image: 'ghcr.io/radiorabe/website-stack/next'
name: 'next'
display-name: 'RaBe Nextjs Website'
tags: 'rabe web nextjs alpine'
# the alpine base image used for the nextjs frontend does not have a
# keyless cosign signature, so we disable verifying the image.
cosign-verify: false
context: './next/'
dockerfile: './next/Dockerfile.prod'
push-default-branch: true
build-args: |
IMAGES_HOSTNAME=data.rabe.ch
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question (non-blocking): this value might need updating to whatever is currently on prod, it's current value seems to be in the .env file

12 changes: 12 additions & 0 deletions .github/workflows/schedule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Scheduled tasks

on:
schedule:
- cron: '13 12 * * *'
workflow_dispatch:

jobs:
schedule-trivy:
uses: radiorabe/actions/.github/workflows/[email protected]
with:
image-ref: 'ghcr.io/radiorabe/website-stack/next:latest'
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Next:

docker-compose up -d next


# Maintenance Mode
In the .env file set NEXT_PUBLIC_MAINTENANCE_MODE true

Expand All @@ -27,3 +26,8 @@ Next:
redirect data.rabe.ch auf rabe.ch

disable healthcheck for next instance

# Build Process

The CI/CD setup uses [Docker build-push Action](https://github.com/docker/build-push-action) to publish container images.
The workflow is based on the [RaBe shared actions](https://radiorabe.github.io/actions/).
6 changes: 6 additions & 0 deletions next/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ RUN \

# Rebuild the source code only when needed
FROM base AS builder

# defaults for use during the container build phase on CI/CD
ARG IMAGES_PROTOCOL=https
ARG IMAGES_HOSTNAME=**
ARG IMAGES_PORT=433

WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
Expand Down