Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
dea708dc13
|
|||
|
4bfbdedac0
|
@@ -9,14 +9,6 @@ jobs:
|
|||||||
"Build nginx docker images":
|
"Build nginx docker images":
|
||||||
runs-on: woryzen
|
runs-on: woryzen
|
||||||
steps:
|
steps:
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3.4.0
|
|
||||||
with:
|
|
||||||
driver: docker-container
|
|
||||||
platforms: |
|
|
||||||
linux/amd64
|
|
||||||
linux/arm64
|
|
||||||
-
|
-
|
||||||
name: Login to Gitea container registry
|
name: Login to Gitea container registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -28,6 +20,7 @@ jobs:
|
|||||||
name: Build and push nginx vanilla images
|
name: Build and push nginx vanilla images
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
builder: multiplatform-builder
|
||||||
context: "{{defaultContext}}:nginx"
|
context: "{{defaultContext}}:nginx"
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
@@ -50,6 +43,7 @@ jobs:
|
|||||||
name: Build and push nginx custom images
|
name: Build and push nginx custom images
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
builder: multiplatform-builder
|
||||||
context: "{{defaultContext}}:nginx"
|
context: "{{defaultContext}}:nginx"
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
|
|||||||
@@ -4,7 +4,12 @@ RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
|||||||
apk add python3 python3-dev pipx gcc g++ musl-dev linux-headers which curl libffi-dev git
|
apk add python3 python3-dev pipx gcc g++ musl-dev linux-headers which curl libffi-dev git
|
||||||
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
|
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM build-base AS java-build
|
FROM --platform=$BUILDPLATFORM alpine:3.22 AS java-build
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
||||||
|
apk update &&\
|
||||||
|
apk add python3 python3-dev pipx gcc g++ musl-dev linux-headers which curl libffi-dev git
|
||||||
|
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
||||||
apk add openjdk11-jdk maven
|
apk add openjdk11-jdk maven
|
||||||
USER jovyan
|
USER jovyan
|
||||||
|
|||||||
Reference in New Issue
Block a user