Skip to content

Commit

Permalink
Merge pull request #10 from ki-met-hoon/feature/#4-github-action
Browse files Browse the repository at this point in the history
EB 배포 자동화 github action 구현 완료
  • Loading branch information
ki-met-hoon authored Feb 19, 2024
2 parents a168726 + fca7e43 commit 6ebe0ec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy-to-aws-eb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permissions:

jobs:
deploy-to-aws-eb:

runs-on: ubuntu-latest

steps:
Expand All @@ -24,6 +25,7 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- run: chmod +x gradlew
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
Expand All @@ -39,10 +41,10 @@ jobs:
- name: Generate deployment package
run: |
mkdir -p deployment
cp build/libs/hello-github-action-0.0.1-SNAPSHOT.jar deployment/hello-github-action-0.0.1-SNAPSHOT.jar
cp build/libs/pnu-univ-miryang-campus-0.0.1-SNAPSHOT.jar deployment/pnu-univ-miryang-campus-0.0.1-SNAPSHOT.jar
# cp deployment/Procfile deployment/Procfile
cd deployment && zip -r hello-github-action-${{steps.current-time.outputs.formattedTime}} .
ls
cd deployment && zip -r pnu-univ-miryang-campus-github-action-${{steps.current-time.outputs.formattedTime}} .
ls
- name: Deploy Hello Github Action to EB
uses: einaregilsson/beanstalk-deploy@v14
Expand All @@ -53,4 +55,4 @@ jobs:
environment_name: Pnu-Univ-Miryang-Campus-env
version_label: pnu-univ-miryang-campus-github-action-${{steps.current-time.outputs.formattedTime}}
region: ap-northeast-2
deployment_package: deployment/pnu-univ-miryang-campus-github-action-${{steps.current-time.outputs.formattedTime}}.zip
deployment_package: deployment/pnu-univ-miryang-campus-github-action-${{steps.current-time.outputs.formattedTime}}.zip

0 comments on commit 6ebe0ec

Please sign in to comment.