a better backend deployment workflow

This commit is contained in:
2024-09-21 13:00:50 +02:00
parent 156661bfba
commit da85b91975
6 changed files with 97 additions and 6 deletions

View File

@@ -0,0 +1,25 @@
on:
pull_request:
branches:
- main
paths:
- backend/**
name: Build and deploy the backend to staging
jobs:
build-and-push:
name: Build and push image
uses: ./workflow_build-image.yaml
with:
tag: unstable
secrets:
PACKAGE_REGISTRY_ACCESS: ${{ secrets.PACKAGE_REGISTRY_ACCESS }}
deploy-prod:
name: Deploy to production
uses: ./workflow_deploy-container.yaml
with:
environment: stg
secrets:
PACKAGE_REGISTRY_ACCESS: ${{ secrets.KUBE_CONFIG }}