Skip to content

[refactor] : 배송준비중 status 띄어쓰기 수정 #38

[refactor] : 배송준비중 status 띄어쓰기 수정

[refactor] : 배송준비중 status 띄어쓰기 수정 #38

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: 저장소 Checkout
uses: actions/checkout@v3
- name: 스프링부트 애플리케이션 빌드 # (1)
run: ./gradlew build
- name: 도커 이미지 빌드 # (2)
run: docker build -t chahs1012/weflo .
- name: Docker Hub 로그인 # (3)
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Docker Hub 퍼블리시 # (4)
run: docker push chahs1012/weflo
- name: WAS 인스턴스 접속 및 애플리케이션 실행 # (5)
uses: appleboy/[email protected]
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_KEY }}
script: |
sudo docker stop $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
sudo docker pull chahs1012/weflo
sudo docker run -d -p 8080:8080 --env-file ./.env chahs1012/weflo