diff --git a/.github/workflows/batch-deploy.yml b/.github/workflows/batch-deploy.yml index 5bc56737..464c7f69 100644 --- a/.github/workflows/batch-deploy.yml +++ b/.github/workflows/batch-deploy.yml @@ -65,20 +65,20 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-access-key-id: ${{ secrets.AWS_BATCH_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_BATCH_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.AWS_REGION }} - name: Add GitHub IP to AWS run: | - aws ec2 authorize-security-group-ingress --group-id ${{ secrets.AWS_SG_ID }} --protocol tcp --port ${{ secrets.PORT }} --cidr ${{ steps.publicip.outputs.ip }}/32 + aws ec2 authorize-security-group-ingress --group-id ${{ secrets.AWS_BATCH_SG_ID }} --protocol tcp --port ${{ secrets.PORT }} --cidr ${{ steps.publicip.outputs.ip }}/32 - name: executing remote ssh commands using ssh key uses: appleboy/ssh-action@master with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.KEY }} + host: ${{ secrets.BATCH_HOST }} + username: ${{ secrets.BATCH_USERNAME }} + key: ${{ secrets.BATCH_KEY }} port: ${{ secrets.PORT }} script: | cd pokit-batch