Skip to content

Commit

Permalink
chore(ci): Publish container images to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare committed Nov 19, 2024
1 parent 2b4f311 commit e2e6c8b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

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

env:
IMAGES_PROTOCOL: 'https'
IMAGES_HOSTNAME: '*'
IMAGES_PORT: '443'

jobs:
release-next-container:
uses: radiorabe/actions/.github/workflows/[email protected]
with:
image: 'ghcr.io/radiorabe/website-next'
name: 'website-next'
display-name: 'RaBe Nextjs Website'
tags: 'rabe 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'
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

0 comments on commit e2e6c8b

Please sign in to comment.