Skip to content

Backend-Dev-CI

Backend-Dev-CI #4

# Backend CI Workflow
# This workflow builds and pushes a Docker image for the backend service to GitHub Container Registry.
# It runs on workflow dispatch or when called by another workflow.
name: Backend-Dev-CI
on:
workflow_dispatch: # Allows manual triggering of the workflow, temporary exist for testing
workflow_call:
# Configures this workflow to run every time a change is pushed to the branch called `release`.
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
ci:
permissions:
contents: read
packages: write
attestations: write
id-token: write
uses: ./.github/workflows/r-ci.yml
with:
isDev: true
imageName: ${{ github.repository_owner }}/pastexam/backend
REGISTRY: ghcr.io