Skip to content

feat: 상세 조회시, id 및 place 정보 반환하도록 구현, ACCEPT 상태만 리스트에 추가하도록 구현 (#64) #48

feat: 상세 조회시, id 및 place 정보 반환하도록 구현, ACCEPT 상태만 리스트에 추가하도록 구현 (#64)

feat: 상세 조회시, id 및 place 정보 반환하도록 구현, ACCEPT 상태만 리스트에 추가하도록 구현 (#64) #48

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches: [ "main" ]
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
# 웹 이미지 빌드 및 도커허브에 push
- name: Checkout
uses: actions/checkout@v2
## create application-database.yaml
- name: make application-aws.yaml
run: |
cd ./src/main/resources
touch ./application-aws.yml
echo "${{ secrets.AWS }}" >> ./application-aws.yml
shell: bash
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: jungminleeee/onna:latest
cache-from: type=gha,scope=build-main
cache-to: type=gha,mode=max,scope=build-main
- name: copy file via ssh password
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ec2-user
key: ${{ secrets.KEY }}
port: 22
source: "docker-compose.yaml"
target: "/home/ec2-user/"
## docker compose up
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ec2-user
key: ${{ secrets.KEY }}
port: 22
script: "docker-compose pull && docker-compose up -d"