Compare commits
No commits in common. "92db958781ce951dc196b245662cd4e21a3b1656" and "56a68bc86757ec85ab9ff201c3335a6d96df84ab" have entirely different histories.
92db958781
...
56a68bc867
3 changed files with 3 additions and 38 deletions
|
@ -13,7 +13,8 @@ labels:
|
|||
platform: linux/amd64
|
||||
|
||||
depends_on:
|
||||
- oci-image-cache-build
|
||||
- java
|
||||
- nodejs
|
||||
|
||||
steps:
|
||||
build-only:
|
||||
|
@ -31,8 +32,6 @@ steps:
|
|||
pull_image: false
|
||||
platforms: ${PLATFORM}
|
||||
dry-run: true
|
||||
build_args:
|
||||
- SETUP_IMAGE=rg.fr-par.scw.cloud/hamburghammer/dchat/setup-image:${CI_PIPELINE_NUMBER}
|
||||
when:
|
||||
- event: [push, manual]
|
||||
branch:
|
||||
|
@ -53,7 +52,5 @@ steps:
|
|||
pull_image: false
|
||||
platforms: ${PLATFORM}
|
||||
auto_tag: true
|
||||
build_args:
|
||||
- SETUP_IMAGE=rg.fr-par.scw.cloud/hamburghammer/dchat/setup-image:${CI_PIPELINE_NUMBER}
|
||||
when:
|
||||
- branch: main
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
matrix:
|
||||
PLATFORM:
|
||||
# - linux/amd64
|
||||
- linux/arm64
|
||||
|
||||
labels:
|
||||
platform: linux/amd64
|
||||
|
||||
depends_on:
|
||||
- java
|
||||
- nodejs
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: woodpeckerci/plugin-docker-buildx:2.3.0
|
||||
group: build
|
||||
settings:
|
||||
registry: rg.fr-par.scw.cloud/hamburghammer
|
||||
username: nologin
|
||||
password:
|
||||
from_secret: docker_token
|
||||
dockerfile: Dockerfile
|
||||
target: setup-image
|
||||
repo: rg.fr-par.scw.cloud/hamburghammer/dchat/setup-image
|
||||
tag: ${CI_PIPELINE_NUMBER}
|
||||
pull_image: false
|
||||
platforms: ${PLATFORM}
|
||||
when:
|
||||
- branch: main
|
|
@ -1,17 +1,14 @@
|
|||
# syntax=docker/dockerfile:1.4.0
|
||||
|
||||
ARG MAVEN_CLI_OPTS="--batch-mode --no-transfer-progress -Dmaven.test.skip"
|
||||
ARG SETUP_IMAGE=setup-image
|
||||
|
||||
# Copy all project files
|
||||
FROM docker.io/maven:3.9-eclipse-temurin-21 AS setup-image
|
||||
FROM docker.io/maven:3.9-eclipse-temurin-21 AS setup
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN --mount=type=cache,target=/root/.m2/ \
|
||||
mvn ${MAVEN_CLI_OPTS} package
|
||||
|
||||
FROM ${SETUP_IMAGE} as setup
|
||||
|
||||
# Create final monolith
|
||||
FROM docker.io/eclipse-temurin:21-jdk-jammy AS monolith
|
||||
WORKDIR /app
|
||||
|
|
Loading…
Reference in a new issue