forked from dbca-wa/it-assets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dbca-wa#490 from ropable/master
Update Dockerfile base image, Kustomize resources, Django minor version
- Loading branch information
Showing
32 changed files
with
1,309 additions
and
1,293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ name: "Build Docker image and run Trivy vulnerability scan" | |
on: | ||
push: | ||
# Publish `master` as `latest` image. | ||
branches: [ master ] | ||
# Publish `2.*` tags as releases. | ||
tags: [ '2.*' ] | ||
branches: [master] | ||
# Publish tagged commits as releases. | ||
tags: ["*"] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [master] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
@@ -77,16 +77,18 @@ jobs: | |
# Run vulnerability scan on built image | ||
#---------------------------------------------- | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@master | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db | ||
with: | ||
scan-type: 'image' | ||
scanners: 'vuln' | ||
scan-type: "image" | ||
scanners: "vuln" | ||
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
vuln-type: 'os,library' | ||
severity: 'HIGH,CRITICAL' | ||
format: 'sarif' | ||
output: 'trivy-results.sarif' | ||
vuln-type: "os,library" | ||
severity: "HIGH,CRITICAL" | ||
format: "sarif" | ||
output: "trivy-results.sarif" | ||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: 'trivy-results.sarif' | ||
sarif_file: "trivy-results.sarif" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# syntax=docker/dockerfile:1 | ||
# Prepare the base environment. | ||
FROM python:3.12.6-alpine AS builder_base | ||
FROM python:3.12.8-alpine AS builder_base | ||
LABEL [email protected] | ||
LABEL org.opencontainers.image.source=https://github.com/dbca-wa/it-assets | ||
|
||
|
@@ -26,11 +26,11 @@ RUN apk add --no-cache \ | |
proj \ | ||
binutils \ | ||
&& ln -s /usr/lib/libproj.so.25 /usr/lib/libproj.so \ | ||
&& ln -s /usr/lib/libgdal.so.35 /usr/lib/libgdal.so \ | ||
&& ln -s /usr/lib/libgdal.so.36 /usr/lib/libgdal.so \ | ||
&& ln -s /usr/lib/libgeos_c.so.1 /usr/lib/libgeos_c.so | ||
WORKDIR /app | ||
COPY poetry.lock pyproject.toml ./ | ||
ARG POETRY_VERSION=1.8.3 | ||
ARG POETRY_VERSION=1.8.5 | ||
RUN pip install --no-cache-dir --root-user-action=ignore poetry==${POETRY_VERSION} \ | ||
&& poetry config virtualenvs.create false \ | ||
&& poetry install --no-interaction --no-ansi --only main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.