From 442e3c319640198bcf3fd2e1bef3816e9d7dcd41 Mon Sep 17 00:00:00 2001 From: Rafael White Date: Wed, 5 Jun 2024 17:24:53 -0400 Subject: [PATCH 1/2] send data from github workspace in source --- .github/workflows/ec2-deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ec2-deploy.yaml b/.github/workflows/ec2-deploy.yaml index c37ff660d..08050a3a1 100644 --- a/.github/workflows/ec2-deploy.yaml +++ b/.github/workflows/ec2-deploy.yaml @@ -19,5 +19,5 @@ jobs: host: ${{ secrets.AWS_EC2_HOST }} username: ${{ secrets.AWS_EC2_USERNAME }} key: ${{ secrets.AWS_EC2_PRIVATE_SSH_KEY }} - source: ${{ github.workspace }} + source: . target: ${{secrets.AWS_EC2_TARGET_DIR}} \ No newline at end of file From f4d3696af5bc79b454d93a700d4abb6cc9ce3369 Mon Sep 17 00:00:00 2001 From: Rafael White Date: Wed, 5 Jun 2024 17:25:51 -0400 Subject: [PATCH 2/2] change name of workflow --- .github/workflows/ec2-deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ec2-deploy.yaml b/.github/workflows/ec2-deploy.yaml index 08050a3a1..3bd988af9 100644 --- a/.github/workflows/ec2-deploy.yaml +++ b/.github/workflows/ec2-deploy.yaml @@ -1,10 +1,10 @@ -name: SCP to Memod Elastic Indexer VM +name: Deploy to EC2 on: workflow_dispatch: jobs: - scp-to-vm: + deploy-to-ec2: runs-on: ubuntu-latest environment: ${{ github.ref_name }} permissions: