mirror of
https://github.com/penpot/penpot.git
synced 2025-01-07 15:39:42 -05:00
Add deployment config
This commit is contained in:
parent
4e3ee7bdab
commit
07583b5e34
2 changed files with 91 additions and 0 deletions
32
.gimlet/penpot-prod.yaml
Normal file
32
.gimlet/penpot-prod.yaml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
app: penpot
|
||||||
|
env: prod
|
||||||
|
namespace: apps
|
||||||
|
deploy:
|
||||||
|
branch: token-studio-develop
|
||||||
|
event: push
|
||||||
|
chart:
|
||||||
|
repository: https://charts.truecharts.org
|
||||||
|
name: penpot
|
||||||
|
version: 4.0.13
|
||||||
|
values:
|
||||||
|
backendImage:
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
repository: ghcr.io/tokens-studio/tokens-studio-for-penpot
|
||||||
|
tag: 'backend-{{ .SHA }}'
|
||||||
|
image:
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
repository: ghcr.io/tokens-studio/tokens-studio-for-penpot
|
||||||
|
tag: 'frontend-{{ .SHA }}'
|
||||||
|
penpot:
|
||||||
|
public_uri: penpot.tokens.studio
|
||||||
|
ingress:
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
networking.gke.io/v1beta1.FrontendConfig: default-frontend-config
|
||||||
|
hosts:
|
||||||
|
- host: penpot.tokens.studio
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- penpot.tokens.studio
|
59
.github/publish.yml
vendored
Normal file
59
.github/publish.yml
vendored
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
name: Publish docker image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ token-studio-develop ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
tags: |
|
||||||
|
type=sha,format=long
|
||||||
|
images: |
|
||||||
|
ghcr.io/tokens-studio/token-flow
|
||||||
|
- name: Publish Docker images
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- "build"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- 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 }}
|
||||||
|
with:
|
||||||
|
ENV: "prod"
|
||||||
|
APP: "penpot"
|
Loading…
Reference in a new issue