test: 봉사 모집글 조회(봉사자) no offset 컨트롤러 테스트 코드를 작성한다. #115
Workflow file for this run
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: CD | |
on: | |
push: | |
branches: [ "main", "feat/#267" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{secrets.ACTION_TOKEN}} | |
submodules: true | |
- 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 | |
- name: Make directory for deliver | |
run: mkdir deploy | |
- name: Build with Gradle | |
run: ./gradlew clean build | |
- name: Copy jar | |
run: cp ./build/libs/*.jar ./deploy/ | |
- name: Make zip file | |
run: zip -r -qq ./$GITHUB_SHA.zip . | |
# https://github.com/marketplace/actions/configure-aws-credentials-action-for-github-actions | |
- name: Congigure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ap-northeast-2 | |
- name: Upload to S3 | |
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://team07-bucket/anifriends/$GITHUB_SHA.zip | |
- name: Deploy | |
run: | | |
aws deploy create-deployment \ | |
--application-name team07-deploy \ | |
--deployment-config-name CodeDeployDefault.AllAtOnce \ | |
--deployment-group-name team07 \ | |
--file-exists-behavior OVERWRITE \ | |
--s3-location bucket=team07-bucket,bundleType=zip,key=anifriends/$GITHUB_SHA.zip \ | |
--region ap-northeast-2 \ |