0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Merge pull request #114 from tokens-studio/feat/port-tracking-and-smoke

Add port label tracking and add a smoke test
This commit is contained in:
SorsOps 2024-05-20 12:45:42 +02:00 committed by GitHub
commit 5954a8698b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 51 additions and 2 deletions

View file

@ -139,4 +139,38 @@ manifests: |
existingSecret: db-penpot-secrets
secretKeys:
usernameKey: username
passwordKey: password
passwordKey: password
json6902Patches:
- target:
group: "apps"
version: "v1"
kind: "Deployment"
name: "penpot-frontend"
patch: |
---
- op: add
path: /metadata/labels
value:
portService: tokens-studio-for-penpot
- target:
group: "apps"
version: "v1"
kind: "Deployment"
name: "penpot-exporter"
patch: |
---
- op: add
path: /metadata/labels
value:
portService: tokens-studio-for-penpot
- target:
group: "apps"
version: "v1"
kind: "Deployment"
name: "penpot-backend"
patch: |
---
- op: add
path: /metadata/labels
value:
portService: tokens-studio-for-penpot

View file

@ -70,4 +70,19 @@ jobs:
GIMLET_TOKEN: ${{ secrets.GIMLET_TOKEN }}
with:
ENV: "prod"
APP: "penpot"
APP: "penpot"
DEPLOY: "true"
smoke:
runs-on: ubuntu-latest
steps:
- name: Check if URL can be accessed
run: |
URL="https://penpot.tokens.studio"
STATUS=$(curl -o /dev/null -s -w "%{http_code}\n" $URL)
if [ $STATUS -ne 200 ]; then
echo "Error: Unable to access $URL. HTTP Status: $STATUS"
exit 1
else
echo "Success: $URL is accessible. HTTP Status: $STATUS"
fi