-
Notifications
You must be signed in to change notification settings - Fork 1
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 #3 from OpSecId/registrations
Registrations
- Loading branch information
Showing
60 changed files
with
3,530 additions
and
673 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# For details on how this file works refer to: | ||
# - https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
# - Check for updates once a week | ||
# - Group all updates into a single PR | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
all-actions: | ||
patterns: [ "*" ] | ||
|
||
# Maintain dependencies for Python Packages | ||
- package-ecosystem: "pip" | ||
directory: "/server" | ||
schedule: | ||
interval: "weekly" | ||
day: "monday" | ||
time: "04:00" | ||
timezone: "Canada/Pacific" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major"] | ||
|
||
- package-ecosystem: "docker" | ||
directory: "/server" | ||
schedule: | ||
interval: "weekly" | ||
day: "monday" | ||
time: "04:00" | ||
timezone: "Canada/Pacific" |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Release Charts | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release-charts: | ||
permissions: | ||
contents: write | ||
packages: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | ||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Add dependency chart repos | ||
run: | | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@v1.6.0 | ||
env: | ||
CR_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Publish Orgbook Publisher Image | ||
run-name: Publish Orgbook Publisher ${{ inputs.tag || github.event.release.tag_name }} Image | ||
on: | ||
release: | ||
types: [published] | ||
|
||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: "Image tag" | ||
required: true | ||
type: string | ||
platforms: | ||
description: "Platforms - Comma separated list of the platforms to support." | ||
required: true | ||
default: linux/amd64 | ||
type: string | ||
ref: | ||
description: "Optional - The branch, tag or SHA to checkout." | ||
required: false | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
env: | ||
PLATFORMS: ${{ inputs.platforms || 'linux/amd64,linux/arm64' }} | ||
|
||
jobs: | ||
publish-image: | ||
if: github.repository_owner == 'OpSecId' | ||
strategy: | ||
fail-fast: false | ||
|
||
name: Publish Orgbook Publisher Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref || '' }} | ||
|
||
- name: Gather image info | ||
id: info | ||
run: | | ||
echo "repo-owner=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_OUTPUT | ||
- name: Cache Docker layers | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Log in to the GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup Image Metadata | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
ghcr.io/${{ steps.info.outputs.repo-owner }}/orgbook-publisher | ||
tags: | | ||
type=raw,value=${{ inputs.tag || github.event.release.tag_name }} | ||
- name: Build and Push Image to ghcr.io | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: true | ||
context: server/ | ||
file: server/Dockerfile | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | ||
platforms: ${{ env.PLATFORMS }} | ||
|
||
# Temp fix | ||
# https://github.com/docker/build-push-action/issues/252 | ||
# https://github.com/moby/buildkit/issues/1896 | ||
- name: Move cache | ||
run: | | ||
rm -rf /tmp/.buildx-cache | ||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache |
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,5 +1,5 @@ | ||
# Linting stuff | ||
.ruff_cache | ||
.ruff_cache/ | ||
|
||
# Databases | ||
app.db | ||
|
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "https://www.w3.org/ns/credentials/examples#" | ||
} | ||
} | ||
|
Oops, something went wrong.