Skip to content

Commit

Permalink
[#37] infra: 배포 CI 파이프라인
Browse files Browse the repository at this point in the history
- S3 연결
  • Loading branch information
5win committed Oct 29, 2024
1 parent e9b3e9a commit ccaf021
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/prod-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Prod-CI

on:
pull_request:
branches: [ "release" ]

jobs:
build:

runs-on: ubuntu-latest

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

- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0

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

- name: Show aws cli version
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws s3 sync \
--region ap-northeast-2 \
build s3://gamja-bongsa
--delete

0 comments on commit ccaf021

Please sign in to comment.