Compare commits
No commits in common. "main" and "v0.1.2" have entirely different histories.
@ -1,10 +1,11 @@
|
|||||||
name: Jb-ssg-site CI Pipeline
|
name: Jb-ssg-site CI Pipeline
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- 'v*'
|
||||||
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,12 +1,14 @@
|
|||||||
FROM eclipse-temurin:25 AS build
|
FROM eclipse-temurin:21 AS build
|
||||||
LABEL authors="jessebrault"
|
LABEL authors="jessebrault"
|
||||||
WORKDIR /jb-ssg-site/
|
WORKDIR /jb-ssg-site/
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN ./gradlew createSsgBinScript && \
|
RUN --mount=type=secret,id=JBARCHIVA_USERNAME,env=JBARCHIVA_USERNAME \
|
||||||
|
--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:25
|
FROM eclipse-temurin:21
|
||||||
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