a better backend deployment workflow
This commit is contained in:
23
.gitea/workflows/backend_build-deploy-prod.yaml
Normal file
23
.gitea/workflows/backend_build-deploy-prod.yaml
Normal 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 }}
|
Reference in New Issue
Block a user