0
Fork 0
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:
SorsOps 2024-06-20 00:40:10 +02:00
parent 4b61e0d80c
commit 87b1bc12c2
No known key found for this signature in database
GPG key ID: E9EC78C740654016
3 changed files with 55 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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 }}