Update Deploy.yml #32
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: Deploy to AWS CodeDeploy | ||
on: | ||
push: | ||
branches: | ||
- deploy | ||
env: | ||
S3_BUCKET_NAME: sursim-img | ||
APPLICATION_NAME: boomerang | ||
DEPLOYMENT_GROUP_NAME: boomerang-deploy-group | ||
REGION: ap-northeast-2 | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
- name: Create application.properties from Secrets | ||
run: | | ||
echo "Current directory: $(pwd)" | ||
mkdir -p boomerang/src/main/resources | ||
echo "${{ secrets.APPLICATION }}" > ./boomerang/src/main/resources/application.properties | ||
cat ./boomerang/src/main/resources/application.properties | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x ./boomerang/gradlew | ||
- name: Build with Gradle | ||
run: ./boomerang/gradlew build -x test | ||
- name: Make zip file | ||
run: zip -r application.zip . | ||
- 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: ${{ | ||
Check failure on line 49 in .github/workflows/Deploy.yml GitHub Actions / Deploy to AWS CodeDeployInvalid workflow file
|