Skip to content

Instantly share code, notes, and snippets.

@herlon214
Created July 28, 2023 18:21
Show Gist options
  • Save herlon214/f9cb09fa392bd7dedb076c1034642cf4 to your computer and use it in GitHub Desktop.
Save herlon214/f9cb09fa392bd7dedb076c1034642cf4 to your computer and use it in GitHub Desktop.
Github Action Deploying to AWS using Copilot
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