Skip to content

Merge pull request #55 from SanE-Seo/changha #33

Merge pull request #55 from SanE-Seo/changha

Merge pull request #55 from SanE-Seo/changha #33

Workflow file for this run

name: deploy
on:
push:
branched:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup jdk 17

Check failure on line 16 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
- name: Make application.yml
run: |
touch ./src/main/resources/application.yml
echo "${{ secrets.APPLICATION_YML }} > ./application.yml
- name: Grant execute permission for gradleqw
run: chmod +x ./gradlew
shell: bash
- name: Build with gradle
run: ./gradlew clean build
shell: bash
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DDTHH-mm-ss
utcOffset: "+09:00"
- name: Generate deployment package
run: |
mkdir -p deploy
cp build/libs/*.jar deploy/application.jar
cd deploy && zip -r deploy.zip .
- uses: einaregilsson/beanstalk-deploy@v22
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}
application_name: SESEO2
environment_name: SESEO2-env
version_label: github-acion-${{ steps.current-time.outputs.formattedTime }}
region: ap-northeast-2
deployment_package: deploy/deploy.zip
wait_for_environment_recovery: 60