File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11name : time-tracker-ui-cd-prod
22
33on :
4- push :
5- tags :
6- - ' v*.*.* '
4+ release :
5+ types :
6+ - published
77
88jobs :
99 cd :
4141 TEMP=$(mktemp)
4242 echo "${{ secrets.PROD_AWS_PRIVATE_KEY }}" > $TEMP
4343 chmod 400 $TEMP
44- scp -o 'StrictHostKeyChecking no' -i $TEMP ./.stage .aws.env ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_UI_URL }}:./infrastructure/aws_ec2.sh
45- scp -o 'StrictHostKeyChecking no' -i $TEMP ./infrastructure/aws_ec2.sh ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_UI_URL }}:./infrastructure/aws_ec2.sh
44+ scp -o 'StrictHostKeyChecking no' -i $TEMP ./.prod .aws.env ${{ secrets.AWS_EC2_USER }}@${{ secrets.PROD_UI_URL }}:.
45+ scp -o 'StrictHostKeyChecking no' -i $TEMP ./infrastructure/aws_ec2.sh ${{ secrets.AWS_EC2_USER }}@${{ secrets.PROD_UI_URL }}:./infrastructure/aws_ec2.sh
4646 ssh -o 'StrictHostKeyChecking no' -i $TEMP ${{ secrets.AWS_EC2_USER }}@${{ secrets.PROD_UI_URL }} "chmod +x ./infrastructure/aws_ec2.sh"
4747 ssh -o 'StrictHostKeyChecking no' -i $TEMP ${{ secrets.AWS_EC2_USER }}@${{ secrets.PROD_UI_URL }} "./infrastructure/aws_ec2.sh $RELEASE_VERSION" prod
Original file line number Diff line number Diff line change 11name : time-tracker-ui-cd-stage
22
33on :
4- release :
5- types :
6- - published
4+ push :
5+ tags :
6+ - ' v*.*.* '
77
88jobs :
99 cd :
4343 TEMP=$(mktemp)
4444 echo "${{ secrets.STAGE_AWS_PRIVATE_KEY }}" > $TEMP
4545 chmod 400 $TEMP
46- scp -o 'StrictHostKeyChecking no' -i $TEMP ./.stage.aws.env ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_UI_URL }}:./infrastructure/aws_ec2.sh
46+ scp -o 'StrictHostKeyChecking no' -i $TEMP ./.stage.aws.env ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_UI_URL }}:.
4747 scp -o 'StrictHostKeyChecking no' -i $TEMP ./infrastructure/aws_ec2.sh ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_UI_URL }}:./infrastructure/aws_ec2.sh
4848 ssh -o 'StrictHostKeyChecking no' -i $TEMP ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_UI_URL }} "chmod +x ./infrastructure/aws_ec2.sh"
4949 ssh -o 'StrictHostKeyChecking no' -i $TEMP ${{ secrets.AWS_EC2_USER }}@${{ secrets.STAGE_UI_URL }} "./infrastructure/aws_ec2.sh $RELEASE_VERSION" stage
You can’t perform that action at this time.
0 commit comments