19 lines
481 B
YAML
19 lines
481 B
YAML
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: ./.gitea/workflows/workflow_build-image.yaml
|
|
with:
|
|
# sets a unique tag for each commit in the PR - this gets deployed to a separate application instance using argocd
|
|
tag: sha${{ github.sha }}
|
|
secrets:
|
|
PACKAGE_REGISTRY_ACCESS: ${{ secrets.PACKAGE_REGISTRY_ACCESS }}
|