GitHub Action: deploy-ecspresso
Deploy on ECS with Escpresso
Introduction
This is template repository to create composite GitHub Actions. Feel free to use it as reference and starting point.
Usage
name: github-action-deploy-ecspresso
on:
push:
branches: [ 'main' ]
jobs:
context:
runs-on: ubuntu-latest
steps:
- name: github-action-deploy-ecspresso
uses: cloudposse/example-github-action-deploy-ecspresso@main
id: example
with:
image: 1111111111111.dkr.ecr.us-east-2.amazonaws.com/cloudposse/example-app-on-ecs
image-tag: latest
region: us-east-2
operation: deploy
cluster: acme-plat-ue2-sandbox
application: acme-plat-ue2-sandbox-example-app-on-ecs
taskdef-path: taskdef.json
outputs:
result: ${{ steps.example.outputs.webapp-url }}
Inputs
Name | Description | Default | Required |
---|---|---|---|
application | Application name | N/A | true |
cluster | Cluster name | N/A | true |
debug | Debug mode | false | false |
ecspresso-version | Ecspresso version | v2.1.0 | false |
image | Docker image | N/A | true |
image-tag | Docker image tag | N/A | true |
mirror_to_s3_bucket | Mirror task definition to s3 bucket | N/A | false |
operation | Operation (valid options - deploy , destroy ) | deploy | true |
region | AWS Region | N/A | true |
taskdef-path | Task definition path | N/A | true |
timeout | Ecspresso timeout | 5m | false |
Outputs
Name | Description |
---|---|
webapp-url | Web Application url |