Skip to content

Commit 858f66a

Browse files
committed
add pull and run
1 parent f49c30f commit 858f66a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/aws-ui-cd-stage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: appleboy/scp-action@master
4343
env:
4444
USERNAME: ${{ secrets.AWS_EC2_USER }}
45-
HOST: ${{ secrets.STAGE_BACKEND_URL }}
45+
HOST: ${{ secrets.STAGE_UI_URL }}
4646
KEY: ${{ secrets.STAGE_AWS_PRIVATE_KEY }}
4747
with:
4848
source: './infrastructure/aws_ec2.sh'
@@ -53,5 +53,5 @@ jobs:
5353
TEMP=$(mktemp)
5454
echo "${{ secrets.STAGE_AWS_PRIVATE_KEY }}" > $TEMP
5555
chmod 400 $TEMP
56-
ssh -o 'StrictHostKeyChecking no' -i $TEMP ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_BACKEND_URL }} "chmod +x ./infrastructure/aws_ec2.sh"
57-
ssh -o 'StrictHostKeyChecking no' -i $TEMP ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_BACKEND_URL }} "./infrastructure/aws_ec2.sh $RELEASE_VERSION" stage
56+
ssh -o 'StrictHostKeyChecking no' -i $TEMP ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_UI_URL }} "chmod +x ./infrastructure/aws_ec2.sh"
57+
ssh -o 'StrictHostKeyChecking no' -i $TEMP ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_UI_URL }} "./infrastructure/aws_ec2.sh $RELEASE_VERSION" stage

0 commit comments

Comments
 (0)