Skip to content

Commit

Permalink
Use GitHub repo to get appspec.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
matjazv committed Sep 27, 2024
1 parent d2574db commit 0446353
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,10 @@ jobs:
${{ steps.docker-image.outputs.image }}:latest
${{ steps.docker-image.outputs.image }}:${{ github.sha }}
- name: Create AppSpec content
run: |
echo '{
"version": 0.0,
"Resources": [
{
"i-08a0817b53b23613f": {
"Type": "AWS::EC2::Instance",
"Properties": {
"Image": "${{ steps.docker-image.outputs.image }}:latest"
}
}
}
]
}' > 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 "revisionType=AppSpecContent,appSpecContent={content=$(cat appspec.json)}" \
--github-location repository=${{ github.repository }},commitId=${{ github.sha }} \
--description "Deploying Across Relayer Docker image to EC2 instance"

0 comments on commit 0446353

Please sign in to comment.