-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,030 changed files
with
42,208 additions
and
19,813 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,27 @@ | ||
# Pad | ||
|
||
# Secure: we're using HTTPS | ||
# CMD_PROTOCOL_USESSL=true | ||
|
||
# Domain: you need to define this if you wish to enable any options | ||
# CMD_DOMAIN=example.org:1337 | ||
|
||
# Content-Security Policy | ||
# CMD_CSP_ENABLE=true | ||
|
||
# Upload on filesystem (instead of imgur) | ||
# CMD_IMAGE_UPLOAD_TYPE=filesystem | ||
|
||
# USE_DISCORD=false | ||
# DISCORD_BOT_TOKEN=secret_token | ||
# DISCORD_SERVER_ID=server_id | ||
# DISCORD_VOICE_CHANNELS=3 | ||
# DISCORD_BOT_NAME=CTFNote | ||
|
||
# Configure timezone and locale | ||
# TZ=Europe/Paris | ||
# LC_ALL=en_US.UTF-8 | ||
|
||
# Can be generated with e.g. pwgen -s 64 1 | ||
# Please provide a string of length 64+ characters | ||
# SESSION_SECRET= |
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,60 @@ | ||
name: "Build and publish Docker images to GHCR" | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "main" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
component: ["front", "api", "db"] | ||
steps: | ||
- name: PrepareReg Names | ||
run: | | ||
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV | ||
echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV | ||
echo IMAGE_REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Generate Docker metadata for ${{ matrix.component }} | ||
id: meta-data | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ghcr.io/${{ env.IMAGE_REPOSITORY }}/${{ matrix.component }} | ||
tags: | | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
type=ref,event=branch | ||
type=semver,pattern={{version}} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ github.token }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
push: true | ||
platforms: linux/amd64,linux/arm64 | ||
context: ./${{ matrix.component }} | ||
tags: ${{ steps.meta-data.outputs.tags }} | ||
labels: ${{ steps.meta-data.outputs.labels }} | ||
cache-from: type=gha,scope=${{ matrix.component }} | ||
cache-to: type=gha,scope=${{ matrix.component }} |
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,7 @@ | ||
{ | ||
"singleQuote": false, | ||
"semi": true, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"trailingComma": "es5" | ||
} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 @@ | ||
compressionLevel: mixed | ||
|
||
enableGlobalCache: false | ||
|
||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.1.1.cjs |
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.