.github/workflows/deploy.yml #1
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
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: 'Deployment environment' | |
type: environment | |
dockerImage: | |
description: 'Docker image' | |
type: string | |
dockerImageSha: | |
description: 'The SHA of the built image' | |
type: string | |
workflow_call: | |
inputs: | |
environment: | |
description: 'Deployment environment' | |
type: string | |
dockerImage: | |
description: 'Docker image' | |
type: string | |
dockerImageSha: | |
description: 'The SHA of the built image' | |
type: string | |
jobs: | |
deploy: | |
runs-on: 'ubuntu-latest' | |
environment: ${{ inputs.environment }} | |
steps: | |
- run: | | |
echo "Deploying docker image ${{ inputs.dockerImage }}@${{ inputs.dockerImageSha }}" | |
echo "Special variable: ${{ vars.WORKSHOP_ENV_VARIABLE }}" |