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,23 @@
on:
push:
tags:
- v*
name: Build and deploy the backend to production
jobs:
build-and-push:
name: Build and push image
uses: ./workflow_build-image.yaml
with:
tag: stable
secrets:
PACKAGE_REGISTRY_ACCESS: ${{ secrets.PACKAGE_REGISTRY_ACCESS }}
deploy-prod:
name: Deploy to production
uses: ./workflow_deploy-container.yaml
with:
environment: prod
secrets:
PACKAGE_REGISTRY_ACCESS: ${{ secrets.KUBE_CONFIG }}