Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matjazv committed Sep 26, 2024
1 parent 6932a1c commit e0ebb71
Showing 1 changed file with 16 additions and 25 deletions.
41 changes: 16 additions & 25 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,35 +42,26 @@ jobs:
${{ steps.docker-image.outputs.image }}:latest
${{ steps.docker-image.outputs.image }}:${{ github.sha }}
- name: Prepare deployment revision
- name: Create AppSpec content
run: |
echo "{
\"ApplicationName\": \"lisk-across-relayer\",
\"DeploymentGroupName\": \"dev-lisk-across-relayer-group\",
\"Revision\": {
\"RevisionType\": \"AppSpecContent\",
\"AppSpecContent\": {
\"Content\": {
\"version\": 0.0,
\"Resources\": [
{
\"i-08a0817b53b23613f\": {
\"Type\": \"AWS::EC2::Instance\",
\"Properties\": {
\"Image\": \"${{ steps.docker-image.outputs.image }}:latest\"
}
}
}
]
echo '{
"version": 0.0,
"Resources": [
{
"i-08a0817b53b23613f": {
"Type": "AWS::EC2::Instance",
"Properties": {
"Image": "${{ steps.docker-image.outputs.image }}:latest"
}
}
}
}
}" > codedeploy.json
]
}' > appspec.json
- name: Deploy to CodeDeploy
run: |
aws deploy create-deployment \
--application-name \"lisk-across-relayer\" \
--deployment-group-name \"dev-lisk-across-relayer-group\" \
--revision file://codedeploy.json \
--application-name lisk-across-relayer \
--deployment-group-name dev-lisk-across-relayer-group \
--revision "revisionType=AppSpecContent,appSpecContent={\"content\":$(cat appspec.json)}" \
--description "Deploying Across Relayer Docker image to EC2 instance"

0 comments on commit e0ebb71

Please sign in to comment.