Skip to content

Commit

Permalink
Task: 배포 환경 해제로 인한 불필요한, delivery 단계 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
wanniDev committed Feb 13, 2024
1 parent a4dd326 commit 77d75c4
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,8 @@ jobs:
- name: make properties directory
run: mkdir -p ./app/src/main/resources/
- name: inject properties yml
run: echo "${{ secrets.APP_PROPS }}" >> ./app/src/main/resources/application.yml
run: echo "${{ secrets.APP_PROPS }}" >> ./app/src/main/resources/application-test.yml
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew test --info
delivery:
needs: test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3

- name: set up ssh
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.APP_RUNNER_PRIVATE_KEY }}

- name: SSH to server
run: |
ssh-keyscan -H ${{ secrets.APP_MAIN_SERVER }} >> ~/.ssh/known_hosts
ssh -o StrictHostKeyChecking=no ${{ secrets.APP_RUNNER }}@${{ secrets.APP_MAIN_SERVER }} exit
- name: clone repository
run: ssh ${{ secrets.APP_RUNNER }}@${{ secrets.APP_MAIN_SERVER }} 'git clone https://github.com/wanniDev/payment-lab'

- name: Deploy
run: |
ssh ${{ secrets.APP_RUNNER }}@${{ secrets.APP_MAIN_SERVER }} './deploy.sh'

0 comments on commit 77d75c4

Please sign in to comment.