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

workflow 파일 수정 #96

Merged
merged 1 commit into from
Aug 19, 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
13 changes: 4 additions & 9 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ env:
CODE_DEPLOY_DEPLOYMENT_GROUP_NAME: cvsgo-server-group

jobs:
test_and_build:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

Expand All @@ -42,11 +42,6 @@ jobs:
run: zip -qq -r ./$GITHUB_SHA.zip .
shell: bash

deploy:
runs-on: ubuntu-latest
needs: test_and_build

steps:
- name: AWS Configure credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -56,7 +51,7 @@ jobs:

- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://${{ env.S3_BUCKET_NAME }}/${{ env.PROJECT_NAME }}/$GITHUB_SHA.zip

- name: Deploy with AWS codeDeploy
run: aws deploy create-deployment
--application-name ${{ env.CODE_DEPLOY_APPLICATION_NAME }}
Expand Down