mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
chore: review
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
This commit is contained in:
parent
478fb5936d
commit
9d4239bed6
8
.github/workflows/barman-base-image.yml
vendored
8
.github/workflows/barman-base-image.yml
vendored
@ -16,10 +16,10 @@ permissions:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
@ -55,8 +55,8 @@ jobs:
|
||||
with:
|
||||
image: "${{ env.IMAGE_NAME }}:latest"
|
||||
args: --severity-threshold=high --file=./containers/Dockerfile.barmanbase
|
||||
-
|
||||
name: Upload result to GitHub Code Scanning
|
||||
|
||||
- name: Upload result to GitHub Code Scanning
|
||||
uses: github/codeql-action/upload-sarif@v3
|
||||
with:
|
||||
sarif_file: snyk.sarif
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
FROM python:3.13-slim AS pythonbuilder
|
||||
FROM python:3.13-slim-bookworm
|
||||
COPY containers/sidecar-requirements.txt .
|
||||
RUN apt-get update && \
|
||||
apt-get install -y postgresql-common build-essential && \
|
||||
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && \
|
||||
apt-get install -y libpq-dev && \
|
||||
pip install barman[azure,cloud,google,snappy]==3.11.1 setuptools
|
||||
pip install -r sidecar-requirements.txt
|
||||
|
||||
@ -33,9 +33,9 @@ COPY ../internal/ internal/
|
||||
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
|
||||
CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/manager/main.go
|
||||
|
||||
# Use plug-barman-cloud-base to get the dependencies
|
||||
# pip will build everything inside /usr/ since this is the case
|
||||
# Copy every file into a destination that will then copy into the distroless container
|
||||
# Use plugin-barman-cloud-base to get the dependencies.
|
||||
# pip will build everything inside /usr, so we copy every file into a new
|
||||
# destination that will then be copied into the distroless container
|
||||
FROM ghcr.io/cloudnative-pg/plugin-barman-cloud-base:latest AS pythonbuilder
|
||||
# Prepare a new /usr/ directory with the files we'll need in the final image
|
||||
RUN mkdir /new-usr/ && \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user