Use this action to deploy an Amazon Elastic Compute Cloud (Amazon EC2) binary. Amazon EC2 is a web service of Amazon Web Services (AWS).
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The Amazon EC2 host URL. |
|
String |
Yes |
The AWS SSH key data. |
|
String |
Yes |
The AWS user to connect as. |
|
String |
Yes |
The source location to copy files from. |
|
String |
Yes |
The destination location in the Amazon EC2 host. |
|
String |
No |
The command to execute after deploying to the destination location. |
|
String |
No |
The script file to execute after deploying to the destination location. |
This action can be used to invoke the ec2 deploy and execute script specified at the destination.
- name: ec2-deploy-with-script
uses: calculi-corp/ec2-deploy-actions@v1
with:
source-location: ${{ cloudbees.workspace }}/test/*
destination-ec2-location: /home/ubuntu/mydeploys/hellowworld/
aws-host: ${{ secrets.EC2-ACTION-DEPLOY-HOST }}
aws-ssh-key-data: ${{ secrets.EC2-ACTION-DEPLOY-KEY }}
aws-user: ubuntu
deploy-script: script1.sh