-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/docker/frontend/node-22-slim
- Loading branch information
Showing
213 changed files
with
16,488 additions
and
13,195 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,3 +1,3 @@ | ||
backend/* @adfinis/dev-backend | ||
frontend/* @adfinis/dev-frontend | ||
charts/* @adfinis/dev-devops | ||
backend/ @adfinis/dev-backend | ||
frontend/ @adfinis/dev-timed | ||
charts/ @adfinis/dev-devops |
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 |
---|---|---|
|
@@ -34,84 +34,21 @@ jobs: | |
with: | ||
github-token: ${{ secrets.ADFINISBOT_PAT }} | ||
allow-initial-development-versions: true | ||
backend: | ||
name: Release Backend | ||
|
||
containers: | ||
name: Release Containers | ||
runs-on: ubuntu-latest | ||
if: needs.semrel.outputs.version != '' | ||
needs: semrel | ||
permissions: | ||
actions: none | ||
checks: none | ||
contents: none | ||
deployments: none | ||
issues: none | ||
packages: write | ||
pull-requests: none | ||
repository-projects: none | ||
security-events: write | ||
statuses: none | ||
id-token: write # needed for signing the images with GitHub OIDC using cosign | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Adjust Version | ||
run: | | ||
sed 's/"0.0.0"/"${{ needs.semrel.outputs.version }}"/g' -i ./backend/pyproject.toml | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ghcr.io/${{ github.repository }}/backend | ||
flavor: | | ||
latest=auto | ||
tags: | | ||
type=semver,pattern={{version}},value=${{ needs.semrel.outputs.version }} | ||
type=semver,pattern={{major}}.{{minor}},value=${{ needs.semrel.outputs.version }} | ||
type=semver,pattern={{major}},value=${{ needs.semrel.outputs.version }} | ||
labels: | | ||
org.opencontainers.image.title=backend | ||
org.opencontainers.image.description=${{ github.event.repository.description }} | ||
org.opencontainers.image.url=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.source=${{ github.event.repository.clone_url }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
org.opencontainers.image.licenses=${{ github.event.repository.license.spdx_id }} | ||
|
||
- name: Build and Push backend Docker Image | ||
uses: docker/build-push-action@v5 | ||
id: docker | ||
with: | ||
context: ./backend/ | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: | | ||
${{ steps.meta.outputs.labels }} | ||
strategy: | ||
matrix: | ||
config: | ||
- name: backend | ||
version-file: pyproject.toml | ||
- name: frontend | ||
version-file: package.json | ||
|
||
- name: Sign backend image and attach SBOM attestation | ||
uses: adfinis/[email protected] | ||
with: | ||
image-ref: ghcr.io/${{ github.repository }}/backend | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
digest: ${{ steps.docker.outputs.digest }} | ||
attest: true | ||
|
||
frontend: | ||
name: Release frontend | ||
runs-on: ubuntu-latest | ||
if: needs.semrel.outputs.version != '' | ||
needs: semrel | ||
permissions: | ||
actions: none | ||
checks: none | ||
|
@@ -131,7 +68,7 @@ jobs: | |
|
||
- name: Adjust Version | ||
run: | | ||
sed 's/"0.0.0"/"${{ needs.semrel.outputs.version }}"/g' -i ./frontend/package.json | ||
sed 's/"0.0.0"/"${{ needs.semrel.outputs.version }}"/g' -i ./${{ matrix.config.name }}/${{ matrix.config.version-file }} | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
|
@@ -147,35 +84,35 @@ jobs: | |
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ghcr.io/${{ github.repository }}/frontend | ||
images: ghcr.io/${{ github.repository }}/${{ matrix.config.name }} | ||
flavor: | | ||
latest=auto | ||
tags: | | ||
type=semver,pattern={{version}},value=${{ needs.semrel.outputs.version }} | ||
type=semver,pattern={{major}}.{{minor}},value=${{ needs.semrel.outputs.version }} | ||
type=semver,pattern={{major}},value=${{ needs.semrel.outputs.version }} | ||
labels: | | ||
org.opencontainers.image.title=frontend | ||
org.opencontainers.image.title=${{ matrix.config.name }} | ||
org.opencontainers.image.description=${{ github.event.repository.description }} | ||
org.opencontainers.image.url=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.source=${{ github.event.repository.clone_url }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
org.opencontainers.image.licenses=${{ github.event.repository.license.spdx_id }} | ||
- name: Build and Push | ||
- name: Build and Push ${{ matrix.config.name }} Docker Image | ||
uses: docker/build-push-action@v5 | ||
id: docker | ||
with: | ||
context: ./frontend/ | ||
context: ./${{ matrix.config.name }}/ | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: | | ||
${{ steps.meta.outputs.labels }} | ||
- name: Sign image and attach SBOM attestation | ||
uses: adfinis/[email protected].3 | ||
- name: Sign ${{ matrix.config.name }} image and attach SBOM attestation | ||
uses: adfinis/[email protected].9 | ||
with: | ||
image-ref: ghcr.io/${{ github.repository }}/frontend | ||
image-ref: ghcr.io/${{ github.repository }}/${{ matrix.config.name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
digest: ${{ steps.docker.outputs.digest }} | ||
attest: true | ||
|
@@ -185,8 +122,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: needs.semrel.outputs.version != '' | ||
needs: | ||
- backend | ||
- frontend | ||
- containers | ||
- semrel | ||
permissions: | ||
actions: none | ||
|
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 |
---|---|---|
|
@@ -7,31 +7,12 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
scan-backend: | ||
name: Scan backend image | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: none | ||
checks: none | ||
contents: none | ||
deployments: none | ||
issues: none | ||
packages: write | ||
pull-requests: none | ||
repository-projects: none | ||
security-events: write | ||
statuses: none | ||
# needed for `cosign attest` | ||
id-token: write | ||
steps: | ||
- uses: adfinis/[email protected] | ||
with: | ||
image-ref: ghcr.io/${{ github.repository }}/backend | ||
attest: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
scan: | ||
strategy: | ||
matrix: | ||
image: [backend, frontend] | ||
|
||
scan-frontend: | ||
name: Scan frontend image | ||
name: Scan ${{ matrix.image }} image | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: none | ||
|
@@ -47,8 +28,8 @@ jobs: | |
# needed for `cosign attest` | ||
id-token: write | ||
steps: | ||
- uses: adfinis/[email protected].3 | ||
- uses: adfinis/[email protected].9 | ||
with: | ||
image-ref: ghcr.io/${{ github.repository }}/frontend | ||
image-ref: ghcr.io/${{ github.repository }}/${{ matrix.image }} | ||
attest: true | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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.