Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8240170ed8 | ||
|
|
d53058c8f6 | ||
|
|
c0a1d29477 |
@ -1,11 +1,10 @@
|
|||||||
name: Jb-ssg-site CI Pipeline
|
name: Jb-ssg-site CI Pipeline
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- 'v*'
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
if: github.event.base_ref == 'refs/heads/main'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the code.
|
- name: Checkout the code.
|
||||||
|
|||||||
@ -1,14 +1,12 @@
|
|||||||
FROM eclipse-temurin:21 AS build
|
FROM eclipse-temurin:25 AS build
|
||||||
LABEL authors="jessebrault"
|
LABEL authors="jessebrault"
|
||||||
WORKDIR /jb-ssg-site/
|
WORKDIR /jb-ssg-site/
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN --mount=type=secret,id=JBARCHIVA_USERNAME,env=JBARCHIVA_USERNAME \
|
RUN ./gradlew createSsgBinScript && \
|
||||||
--mount=type=secret,id=JBARCHIVA_PASSWORD,env=JBARCHIVA_PASSWORD \
|
|
||||||
./gradlew createSsgBinScript && \
|
|
||||||
bin/ssg build -g && \
|
bin/ssg build -g && \
|
||||||
./gradlew installServerDist
|
./gradlew installServerDist
|
||||||
|
|
||||||
FROM eclipse-temurin:21
|
FROM eclipse-temurin:25
|
||||||
LABEL authors="jessebrault"
|
LABEL authors="jessebrault"
|
||||||
WORKDIR /jb-ssg-site
|
WORKDIR /jb-ssg-site
|
||||||
COPY --from=build /jb-ssg-site/dist/ dist/
|
COPY --from=build /jb-ssg-site/dist/ dist/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user