Skip to content

Commit

Permalink
gitConflict수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lth01 committed Apr 25, 2024
2 parents 91334ca + a1d4c57 commit 794946a
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 6 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/backendDeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: github-action-workflow

on:
push:
branches: [ "develop" ]

env:
S3_BUCKET_NAME: thlee-content
AWS_REGION: ap-northeast-2
CODEDEPLOY_NAME: github-actions
CODEDEPLOY_GROUP: thlee-github-actions-group

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Github checkout
uses: actions/checkout@v4

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

- name: Grant excute permission for gradlew
run: chmod +x gradlew

- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0

- name: Build with Gradle Wrapper
run: ./gradlew build

- name: Make zip file
run: zip -r ./$GITHUB_SHA.zip .
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: ${{ env.AWS_REGION }}

- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://thlee-content/$GITHUB_SHA.zip

- name: Code Deploy
run: aws deploy create-deployment --application-name $CODEDEPLOY_NAME --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name $CODEDEPLOY_GROUP --s3-location bucket=$S3_BUCKET_NAME,bundleType=zip,key=$GITHUB_SHA.zip
12 changes: 6 additions & 6 deletions .github/workflows/testBeforePR.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle







name: Test Before PR

Expand Down

0 comments on commit 794946a

Please sign in to comment.