Skip to content

deploy-server

deploy-server #100

name: deploy-server
on:
workflow_dispatch:
inputs:
environment:
required: true
description: Deploy to PROD/DEV
type: choice
options: [PROD, DEV]
jobs:
# ci:
# uses: ./.github/workflows/ci-server.yaml
deploy:
uses: ./.github/workflows/deploy.yaml
permissions:
packages: write
contents: read
attestations: write
id-token: write
secrets: inherit
with:
dockerfile_path: 'server/Dockerfile.server'
context_path: 'server'
image_name: 'leenky-server'
environment: ${{ github.event.inputs.environment }}
secret-service-hash: ${{ github.event.inputs.environment == 'PROD' && 'SERVER_SERVICE_HASH' || 'SERVER_SERVICE_HASH_DEV' }}