-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task: 배포 환경 해제로 인한 불필요한, delivery 단계 삭제
- Loading branch information
Showing
1 changed file
with
1 addition
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' |