Skip to content

Commit e2e6c8b

Browse files
committed
chore(ci): Publish container images to ghcr.io
1 parent 2b4f311 commit e2e6c8b

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
tags:
8+
- 'v*.*.*'
9+
10+
env:
11+
IMAGES_PROTOCOL: 'https'
12+
IMAGES_HOSTNAME: '*'
13+
IMAGES_PORT: '443'
14+
15+
jobs:
16+
release-next-container:
17+
uses: radiorabe/actions/.github/workflows/release-container.yaml@v0.23.1
18+
with:
19+
image: 'ghcr.io/radiorabe/website-next'
20+
name: 'website-next'
21+
display-name: 'RaBe Nextjs Website'
22+
tags: 'rabe nextjs alpine'
23+
# the alpine base image used for the nextjs frontend does not have a
24+
# keyless cosign signature, so we disable verifying the image.
25+
cosign-verify: false
26+
context: './next/'
27+
dockerfile: './next/Dockerfile.prod'

next/Dockerfile.prod

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ RUN \
2020

2121
# Rebuild the source code only when needed
2222
FROM base AS builder
23+
24+
# defaults for use during the container build phase on CI/CD
25+
ARG IMAGES_PROTOCOL=https
26+
ARG IMAGES_HOSTNAME=**
27+
ARG IMAGES_PORT=433
28+
2329
WORKDIR /app
2430
COPY --from=deps /app/node_modules ./node_modules
2531
COPY . .

0 commit comments

Comments
 (0)