mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 11:41:41 +02:00
Change asset storage
This commit is contained in:
parent
4b61e0d80c
commit
87b1bc12c2
3 changed files with 55 additions and 7 deletions
|
@ -18,9 +18,6 @@ values:
|
||||||
redisEnabled: false
|
redisEnabled: false
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: ghcr-login-secret
|
- name: ghcr-login-secret
|
||||||
persistence:
|
|
||||||
enabled: true
|
|
||||||
storageClass: standard-rwx
|
|
||||||
postgresql:
|
postgresql:
|
||||||
# use the existing db
|
# use the existing db
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@ -30,6 +27,22 @@ values:
|
||||||
secret: db-penpot-secrets
|
secret: db-penpot-secrets
|
||||||
superUser: db-penpot-superuser-secret
|
superUser: db-penpot-superuser-secret
|
||||||
config:
|
config:
|
||||||
|
assets:
|
||||||
|
storageBackend: assets-s3
|
||||||
|
s3:
|
||||||
|
bucket: assets
|
||||||
|
endpointURI: http://minio.penpot.svc.cluster.local:80
|
||||||
|
existingSecret:
|
||||||
|
penpot-assets-user-0
|
||||||
|
secretKeys:
|
||||||
|
accessKeyIDKey: CONSOLE_ACCESS_KEY
|
||||||
|
secretAccessKey: CONSOLE_SECRET_KEY
|
||||||
|
|
||||||
|
# - AWS_ACCESS_KEY_ID=<KEY_ID>
|
||||||
|
# - AWS_SECRET_ACCESS_KEY=<ACCESS_KEY>
|
||||||
|
# - PENPOT_ASSETS_STORAGE_BACKEND=assets-s3
|
||||||
|
# - PENPOT_STORAGE_ASSETS_S3_ENDPOINT=http://penpot-minio:9000
|
||||||
|
# - PENPOT_STORAGE_ASSETS_S3_BUCKET=<BUKET_NAME>
|
||||||
smtp:
|
smtp:
|
||||||
enabled: true
|
enabled: true
|
||||||
host: mailslurper
|
host: mailslurper
|
||||||
|
|
|
@ -14,9 +14,6 @@ values:
|
||||||
redisEnabled: true
|
redisEnabled: true
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: ghcr-login-secret
|
- name: ghcr-login-secret
|
||||||
persistence:
|
|
||||||
enabled: true
|
|
||||||
storageClass: standard-rwx
|
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: true
|
enabled: true
|
||||||
owner: penpot
|
owner: penpot
|
||||||
|
@ -25,6 +22,16 @@ values:
|
||||||
secret: db-penpot-secrets
|
secret: db-penpot-secrets
|
||||||
superUser: db-penpot-superuser-secret
|
superUser: db-penpot-superuser-secret
|
||||||
config:
|
config:
|
||||||
|
assets:
|
||||||
|
storageBackend: assets-s3
|
||||||
|
s3:
|
||||||
|
bucket: assets
|
||||||
|
endpointURI: http://minio.penpot.svc.cluster.local:80
|
||||||
|
existingSecret:
|
||||||
|
penpot-assets-user-0
|
||||||
|
secretKeys:
|
||||||
|
accessKeyIDKey: CONSOLE_ACCESS_KEY
|
||||||
|
secretAccessKey: CONSOLE_SECRET_KEY
|
||||||
smtp:
|
smtp:
|
||||||
enabled: true
|
enabled: true
|
||||||
host: mailslurper
|
host: mailslurper
|
||||||
|
|
28
.github/workflows/cleanup.yaml
vendored
28
.github/workflows/cleanup.yaml
vendored
|
@ -10,8 +10,36 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Determine the branch name
|
||||||
|
id: determine_branch
|
||||||
|
run: |
|
||||||
|
if [ "${{ github.event_name }}" == "pull_request" ]; then
|
||||||
|
echo "branch_name=${{ github.head_ref }}" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "branch_name=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
- name: Replace / with - in branch name
|
||||||
|
id: replace_slash
|
||||||
|
run: |
|
||||||
|
SANITIZED_BRANCH_NAME=$(echo "${{ env.branch_name }}" | tr '/' '-')
|
||||||
|
echo "sanitized_branch_name=${SANITIZED_BRANCH_NAME}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: 🍍 Deploy with Gimlet
|
- name: 🍍 Deploy with Gimlet
|
||||||
uses: gimlet-io/gimlet-artifact-shipper-action@v0.8.3
|
uses: gimlet-io/gimlet-artifact-shipper-action@v0.8.3
|
||||||
env:
|
env:
|
||||||
GIMLET_SERVER: ${{ secrets.GIMLET_SERVER }}
|
GIMLET_SERVER: ${{ secrets.GIMLET_SERVER }}
|
||||||
GIMLET_TOKEN: ${{ secrets.GIMLET_TOKEN }}
|
GIMLET_TOKEN: ${{ secrets.GIMLET_TOKEN }}
|
||||||
|
- name: Delete image
|
||||||
|
uses: bots-house/ghcr-delete-image-action@v1.1.0
|
||||||
|
with:
|
||||||
|
owner: tokens-studio
|
||||||
|
name: tokens-studio-for-penpot
|
||||||
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
|
tag: pr-frontend-${{ env.sanitized_branch_name }}
|
||||||
|
- name: Delete image
|
||||||
|
uses: bots-house/ghcr-delete-image-action@v1.1.0
|
||||||
|
with:
|
||||||
|
owner: tokens-studio
|
||||||
|
name: tokens-studio-for-penpot
|
||||||
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
|
tag: pr-backend-${{ env.sanitized_branch_name }}
|
Loading…
Add table
Add a link
Reference in a new issue