Created
July 28, 2023 18:21
-
-
Save herlon214/f9cb09fa392bd7dedb076c1034642cf4 to your computer and use it in GitHub Desktop.
Github Action Deploying to AWS using Copilot
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
name: deploy | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-region: ${{ secrets.AWS_REGION }} | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Install Copilot CLI | |
run: | | |
wget https://github.com/aws/copilot-cli/releases/latest/download/copilot-linux && chmod +x copilot-linux && sudo mv copilot-linux /usr/local/bin/copilot && copilot --help | |
- name: Deploy | |
run: copilot deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment