Skip to content

Deploy

Deploy #3

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
inputs:
image-tag:
type: string
description: "Image tag to deploy (default: pr-<number> if PR exists, latest for default branch)"
deploy-app:
default: true
type: boolean
description: (Re-)deploys the application.
deploy-proxy:
default: false
type: boolean
description: (Re-)deploys the proxy components. Usually not necessary and might cause downtime.
jobs:
deploy:
if: ${{ inputs.deploy-app }}
uses: ls1intum/.github/.github/workflows/deploy-docker-compose.yml@main
with:
environment: "Production"
docker-compose-file: "./docker/compose.app.yaml"
main-image-name: ls1intum/proposal-review-assistant
image-tag: ${{ inputs.image-tag }}
deployment-base-path: "/opt/proposal-review-assistant"
secrets: inherit
deploy-proxy:
if: ${{ inputs.deploy-proxy }}
uses: ls1intum/.github/.github/workflows/deploy-docker-compose.yml@main
with:
environment: "Production"
docker-compose-file: "./docker/compose.proxy.yaml"
# We just keep the main-image-name and image-tag as placeholders
main-image-name: ls1intum/proposal-review-assistant
image-tag: ${{ inputs.image-tag }}
deployment-base-path: "/opt/proxy"
secrets: inherit