feat : 상품 등록시 user-purchase 연결 추가 #6
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: techeer-market | ||
on: | ||
push: | ||
-develop | ||
workflow_dispath: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
-name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
repository: Backend | ||
-name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
-name: Grant execute permission for gradlew | ||
run: chmod +x ./gradlew | ||
shell: bash | ||
-name: Build with Gradle | ||
run: ./gradlew clean build | ||
shell: bash | ||
-name: Get build time | ||
usees: 1466587594/get-current-time@v2 | ||
id: current-time | ||
with: | ||
format: YYYY-MM-DDTHH-mm-ss | ||
utcOffset: "+09:00" | ||
-name: Show Current Time | ||
run: echo "CurrentTime = ${{steps.current-time.outputs.formattedTime}}" | ||
shell: bash | ||
-name: Generate deployment package | ||
run: | ||
mkdir -p deploy | ||
cp build/libs/*.jar deploy/app.jar | ||
cp Procfile deploy/Procfile | ||
cp -r .ebextensions deploy/.ebextensions | ||
cd deploy && zip -r deploy.zip . | ||
-name: Deploy to EB | ||
uses: einaregilsson/beanstalk-deploy@v19 | ||
with: | ||
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
application_name: techeermarket | ||
environment_name: techeermarket-env | ||
verion_label: github-action-${{steps.current-time.outputs.formattedTime}} | ||
region: ap-northeast-2 | ||
deployment_package: deploy/deploy.zip |