Skip to content

Commit

Permalink
Merge branch 'main' into recent-activity
Browse files Browse the repository at this point in the history
# Conflicts:
#	.config/dotnet-tools.json
#	ProjectLighthouse.Servers.Website/Pages/Partials/ReviewPartial.cshtml
  • Loading branch information
Slendy committed Apr 1, 2024
2 parents c201183 + 931f079 commit 8f91875
Show file tree
Hide file tree
Showing 54 changed files with 459 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "8.0.0",
"version": "8.0.3",
"commands": [
"dotnet-ef"
]
Expand Down
89 changes: 89 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Build Docker Image

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}


jobs:
build-publish:
name: Build and Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 #v3.4.0
with:
cosign-release: 'v2.2.3'

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-ar-SA.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to your users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-da-DK.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Hvis ikke, bedes du publicere kildekoden et eller andet sted, der er tilgængeligt for dine brugere.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-de-DE.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Falls nicht, veröffentliche den Quellcode irgendwo, wo die Nutzer deiner Instanz darauf zugreifen können.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-en-PT.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to yer users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-eo-UY.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to your users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-es-ES.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Si no es así, por favor publique el código fuente en algún lugar accesible para sus usuarios.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-es-MX.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>De lo contrario, publique el código fuente en algún lugar accesible para sus usuarios.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-et-EE.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to your users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-fi-FI.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Jos ei, julkaise lähdekoodisi jonnekin, jossa se on käyttäjillesi saatavissa.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-fil-PH.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Kung hindi, mangyaring ilathala ang source code sa isang lugar na maaring ma-access ng iyong mga user.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-fr-FR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Dans le cas contraire, veuillez publier le code source dans un endroit accessible à vos utilisateurs.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-ga-IE.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to your users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-he-IL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to your users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-hi-IN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to your users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-id-ID.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to your users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-it-IT.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>In caso contrario, si prega di pubblicare il codice sorgente da qualche parte accessibile ai propri utenti.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-ja-JP.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to your users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-nl-NL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to your users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-no-NO.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Hvis ikke, vennligst publiser kildekoden et sted som er tilgjengelig for brukerne dine</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-pl-PL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Jeśli nie, proszę opublikować kod źródłowy dostępny dla użytkowników.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-pt-PT.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Se não for o caso, publique o código-fonte em um local acessível aos seus utilizadores.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-ru-RU.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Если нет, пожалуйста, опубликуйте исходный код в доступном для ваших пользователей месте.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-sv-SE.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Om inte, vänligen publicera källkoden någonstans tillgängligt för dina användare.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-th-TH.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>If not, please publish the source code somewhere accessible to your users.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions ProjectLighthouse.Localization/BaseLayout.lang-tr-TR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@
<data name="license_warn_3" xml:space="preserve">
<value>Eğer değilse, lütfen kaynak kodunu kullanıcılarınızın erişebileceği bir yerde yayınlayın.</value>
</data>
<data name="read_only_warn_title" xml:space="preserve">
<value>Read-Only Mode</value>
</data>
<data name="read_only_warn" xml:space="preserve">
<value>This instance is currently in read-only mode. Level and photo uploads, comments, reviews, and certain profile changes will be restricted until read-only mode is disabled.</value>
</data>
</root>
Loading

0 comments on commit 8f91875

Please sign in to comment.