Skip to content

generalize workflow #17

generalize workflow

generalize workflow #17

Workflow file for this run

name: Deploy to Dev

Check failure on line 1 in .github/workflows/deploy-dev.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-dev.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: prepare-env
on:
workflow_dispatch:
inputs:
image-tag:
type: string
description: "Image tag to deploy (default: pr-<number> if PR exists, latest for default branch)"
jobs:
prepare-env:
runs-on: ubuntu-latest
environment: Dev
outputs:
env-vars: |
DEPLOYMENT_URL=${{ vars.DEPLOYMENT_URL }}
APOLLON_REDIS_DIAGRAM_TTL=${{ vars.APOLLON_REDIS_DIAGRAM_TTL }}
deploy:
needs: prepare-env
# TODO: uses: ls1intum/.github/.github/workflows/deploy-docker-compose.yml@main
uses: ./.github/workflows/deploy-docker-compose-shared.yml
with:
environment: Dev
docker-compose-file: "./docker-compose.prod.yml"
main-image-name: ls1intum/apollon_standalone
image-tag: ${{ inputs.image-tag }}
env-vars: ${{ needs.prepare-env.outputs.env-vars }}
secrets: inherit