diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 069c483..013e043 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -8,7 +8,7 @@ env: AWS_REGION: ap-south-1 AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - PRIVATE_SSH_KEY: ${{ secrets.PRIVATE_SSH_KEY }} + PRIVATE_SSH_KEY: ${{ secrets.AWS_SSH_KEY }} SERVER_PUBLIC_IP: ${{ secrets.AWS_PUBLIC_KEY }} jobs: @@ -59,7 +59,7 @@ jobs: with: host: ${{ secrets.AWS_PUBLIC_KEY}} username: ubuntu - key: ${{ secrets.PRIVATE_SSH_KEY }} + key: ${{ secrets.AWS_SSH_KEY }} envs: PRIVATE_SSH_KEY,REGISTRY,REPOSITORY,IMAGE_TAG,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_DEFAULT_REGION,AWS_REGION script: |- sudo apt update