0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-01 11:59:17 -05:00

Add port label tracking and add a smoke test

This commit is contained in:
SorsOps 2024-05-20 12:11:29 +02:00
parent ec36e06b7b
commit 851054c617
No known key found for this signature in database
GPG key ID: E9EC78C740654016
2 changed files with 51 additions and 2 deletions

View file

@ -140,3 +140,37 @@ manifests: |
secretKeys:
usernameKey: username
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

@ -71,3 +71,18 @@ jobs:
with:
ENV: "prod"
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