Manual Deploy [boxel] #183
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manual Deploy [boxel] | |
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: Deployment environment | |
required: false | |
default: staging | |
workflow_call: | |
inputs: | |
environment: | |
required: true | |
type: string | |
jobs: | |
build-host: | |
name: Build host | |
uses: ./.github/workflows/build-host.yml | |
secrets: inherit | |
with: | |
environment: ${{ inputs.environment }} | |
deploy-host: | |
name: Deploy host | |
needs: [build-host] | |
uses: ./.github/workflows/deploy-host.yml | |
secrets: inherit | |
with: | |
environment: ${{ inputs.environment }} | |
build-realm-server: | |
name: Build Docker image | |
uses: cardstack/gh-actions/.github/workflows/docker-ecr.yml@main | |
secrets: inherit | |
with: | |
repository: "boxel-realm-server-${{ inputs.environment }}" | |
environment: ${{ inputs.environment }} | |
dockerfile: "packages/realm-server/Dockerfile" | |
build-args: | | |
"realm_server_script=start:${{ inputs.environment }}" | |
deploy-realm-server: | |
name: Deploy realm server | |
needs: [build-realm-server, deploy-host] | |
uses: cardstack/gh-actions/.github/workflows/ecs-deploy.yml@main | |
secrets: inherit | |
with: | |
container-name: "boxel-realm-server" | |
environment: ${{ inputs.environment }} | |
cluster: ${{ inputs.environment }} | |
service-name: "boxel-realm-server-${{ inputs.environment }}" | |
image: ${{ needs.build-realm-server.outputs.image }} |