Merge pull request #55 from Try-AngIe/feat/messaging #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BE PIPELINE | |
on: | |
push: | |
branches: | |
- dev | |
paths: | |
- 'server/**' | |
permissions: #github actions bot에게 권한 열기 | |
contents: write | |
pages: write | |
id-token: write | |
env: | |
AWS_REGION: ap-northeast-2 | |
S3_BUCKET: rlatkdbe3 | |
jobs: | |
be-pipline: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: prod | |
- name: 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 DEPLOY_FILE/server/server-0.0.1-SNAPSHOT.jar s3://${{ env.S3_BUCKET }}/server-0.0.1-SNAPSHOT.jar |