mirror of
https://github.com/penpot/penpot.git
synced 2025-02-12 10:09:03 -05: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
|
||||
imagePullSecrets:
|
||||
- name: ghcr-login-secret
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClass: standard-rwx
|
||||
postgresql:
|
||||
# use the existing db
|
||||
enabled: false
|
||||
|
@ -30,6 +27,22 @@ values:
|
|||
secret: db-penpot-secrets
|
||||
superUser: db-penpot-superuser-secret
|
||||
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:
|
||||
enabled: true
|
||||
host: mailslurper
|
||||
|
|
|
@ -14,9 +14,6 @@ values:
|
|||
redisEnabled: true
|
||||
imagePullSecrets:
|
||||
- name: ghcr-login-secret
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClass: standard-rwx
|
||||
postgresql:
|
||||
enabled: true
|
||||
owner: penpot
|
||||
|
@ -25,6 +22,16 @@ values:
|
|||
secret: db-penpot-secrets
|
||||
superUser: db-penpot-superuser-secret
|
||||
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:
|
||||
enabled: true
|
||||
host: mailslurper
|
||||
|
|
30
.github/workflows/cleanup.yaml
vendored
30
.github/workflows/cleanup.yaml
vendored
|
@ -10,8 +10,36 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- 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
|
||||
uses: gimlet-io/gimlet-artifact-shipper-action@v0.8.3
|
||||
env:
|
||||
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
Reference in a new issue