Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config: workflow 오류 수정 #7

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/test_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Build with Gradle
run: ./gradlew clean build

- name: remove plain.jar
run: rm -rf build/libs/plain.jar

- name: file copy
uses: actions/upload-artifact@v3
with:
Expand All @@ -48,7 +51,7 @@ jobs:
BUCKET_NAME: ${{ secrets.CF_BUCKET_NAME }}
ENDPOINT_URL: ${{ secrets.CF_ENDPOINT_URL }}
run: |
aws s3 sync build/libs/*SNAPSHOT.jar s3://$BUCKET_NAME/java/test_main.jar \
aws s3 sync build/libs/ s3://$BUCKET_NAME/java/main/test \
--endpoint-url $ENDPOINT_URL --delete --exact-timestamps

- name: SSH and deploy
Expand All @@ -60,7 +63,7 @@ jobs:
port: ${{ secrets.PORT }}
timeout: 40s # 30초 기본
script: |
aws s3 sync s3://readyvery-dev-server/java/test_main.jar ./docker/java/test/test_main.jar \
aws s3 sync s3://readyvery-dev-server/java/main/test ./docker/java/test/jar \
--endpoint-url https://29c6e4b55b1ddb8d2b6e69df21141caa.r2.cloudflarestorage.com \
--delete --exact-timestamps

Expand Down