0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 14:12:36 -05:00

Merge pull request #132 from tokens-studio/feat/branch-deploys

Prefer wait over deploy for build
This commit is contained in:
SorsOps 2024-06-04 11:23:49 +02:00 committed by GitHub
commit 202b72dcd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 11 deletions

View file

@ -14,7 +14,7 @@ values:
image: image:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
repository: ghcr.io/tokens-studio/tokens-studio-for-penpot repository: ghcr.io/tokens-studio/tokens-studio-for-penpot
tag: 'frontend-{{ .SHA }}' tag: 'frontend-pr-{{ .SHA }}'
ingress: ingress:
hosts: hosts:
- host: "{{ .BRANCH | sanitizeDNSName }}.penpot.staging.tokens.studio" - host: "{{ .BRANCH | sanitizeDNSName }}.penpot.staging.tokens.studio"

View file

@ -116,7 +116,6 @@ manifests: |
enabled: true enabled: true
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: letsencrypt-prod
networking.gke.io/v1beta1.FrontendConfig: default-frontend-config
hosts: hosts:
- host: penpot.tokens.studio - host: penpot.tokens.studio
tls: tls:

View file

@ -12,7 +12,8 @@ jobs:
matrix: matrix:
include: include:
- dockerfile: Dockerfile.frontend - dockerfile: Dockerfile.frontend
type: frontend type: pr-frontend
name: frontend
permissions: permissions:
contents: read contents: read
packages: write packages: write
@ -30,7 +31,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }} password: ${{ secrets.PAT_TOKEN }}
- name: Docker meta - name: Docker meta
id: meta id: meta
@ -42,9 +43,9 @@ jobs:
ghcr.io/tokens-studio/tokens-studio-for-penpot ghcr.io/tokens-studio/tokens-studio-for-penpot
- name: prebuild - name: prebuild
run: | run: |
echo "Building ${{ matrix.type }} image" echo "Building ${{ matrix.name }} image"
./manage.sh build-${{matrix.type}}-bundle ./manage.sh build-${{matrix.name}}-bundle
mv ./bundles/${{matrix.type}} ./docker/images/bundle-${{matrix.type}}/ mv ./bundles/${{matrix.name}} ./docker/images/bundle-${{matrix.name}}/
- name: Publish Docker images - name: Publish Docker images
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -65,5 +66,6 @@ jobs:
- name: 🍍 Deploy with Gimlet - name: 🍍 Deploy with Gimlet
uses: gimlet-io/gimlet-artifact-shipper-action@v0.8.3 uses: gimlet-io/gimlet-artifact-shipper-action@v0.8.3
env: env:
GIMLET_SERVER: ${{ secrets.GIMLET_SERVER }} GIMLET_SERVER: ${{ secrets.GIMLET_SERVER }}
GIMLET_TOKEN: ${{ secrets.GIMLET_TOKEN }} GIMLET_TOKEN: ${{ secrets.GIMLET_TOKEN }}
DEPLOY: 'true'

View file

@ -31,7 +31,8 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }} password: ${{ secrets.PAT_TOKEN }}
- name: Docker meta - name: Docker meta
id: meta id: meta
@ -71,7 +72,7 @@ jobs:
with: with:
ENV: "prod" ENV: "prod"
APP: "penpot" APP: "penpot"
DEPLOY: "true" WAIT: "true"
smoke: smoke:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs: