diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 92992794..2385eb23 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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 @@ -96,4 +104,3 @@ jobs: script: | chmod +x /home/ec2-user/cicd/deploy.sh sh /home/ec2-user/cicd/deploy.sh -