Skip to content

docs: github actions elastic beanstalk 배포까지 script 작성 #2

docs: github actions elastic beanstalk 배포까지 script 작성

docs: github actions elastic beanstalk 배포까지 script 작성 #2

Workflow file for this run

name: sharemind-deploy
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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
shell: bash
- name: Build with Gradle
run: ./gradlew clean build
shell: bash
- name: Get current time
uses: 1466587594/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
cp Procfile deploy/Procfile
cp -r .ebextensions deploy/.ebextensions
cp -r .platform deploy/.platform
cd deploy && zip -r deploy.zip .
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v21
with:

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

View workflow run for this annotation

GitHub Actions / sharemind-deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 49, Col: 14): Unexpected value '' .github/workflows/deploy.yml (Line: 50, Col: 9): Unexpected value 'aws_access_key'
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: sharemind-v1
environment_name: Sharemind-v1-env
version_label: github-actions-${{steps.current-time.outputs.formattedTime}}
region: ap-northeast-2
deployment_package: deploy/deploy.zip