Skip to content

Commit

Permalink
Chore : Update gradle.yml
Browse files Browse the repository at this point in the history
์ž‘์—… ๋ถ„๋ฆฌ
  • Loading branch information
Mouon authored Dec 31, 2023
1 parent fe2bf20 commit 294ff72
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,21 @@ jobs:
source: "deploy.sh"
target: "/home/ec2-user/cicd"

- name: Execute deploy script
- name: Set up Environment Variables
env:
DEPLOY_SERVER: ${{ secrets.HOST }}
DEPLOY_USER: ${{ secrets.USERNAME }}
DEPLOY_KEY: ${{ secrets.PRIVATE_KEY }}
DEPLOY_TARGET_DIR: /home/ec2-user/app

run: |
# You can add any necessary environment setup here
echo "Setting up environment variables..."
echo "DEPLOY_SERVER=$DEPLOY_SERVER"
echo "DEPLOY_USER=$DEPLOY_USER"
echo "DEPLOY_KEY=$DEPLOY_KEY"
echo "DEPLOY_TARGET_DIR=$DEPLOY_TARGET_DIR"
- name: Execute deploy script
uses: appleboy/ssh-action@master
with:
username: ec2-user
Expand All @@ -96,4 +104,3 @@ jobs:
script: |
chmod +x /home/ec2-user/cicd/deploy.sh
sh /home/ec2-user/cicd/deploy.sh

0 comments on commit 294ff72

Please sign in to comment.