Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leeesoraaa authored Jul 27, 2024
1 parent 9e308c8 commit d4fcb60
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: coinTalk chatRoom server CI/CD
name: GG GoLab server CI/CD

on:
push:
Expand All @@ -7,7 +7,7 @@ on:
branches: [ main ]

env:
S3_BUCKET_NAME: cointalk-deploy
S3_BUCKET_NAME: golabgolab

jobs:
build:
Expand All @@ -28,3 +28,24 @@ jobs:

- name: Build with Gradle
run: ./gradlew clean build
# 디렉토리 생성
- name: Make Directory
run: mkdir -p deploy

# Jar 파일 복사
- name: Copy Jar
run: cp ./build/libs/*.jar ./deploy

- name: Make zip file
run: zip -r ./golab.zip ./deploy
shell: bash

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./golab.zip s3://$S3_BUCKET_NAME/

0 comments on commit d4fcb60

Please sign in to comment.