Skip to content

Feat: "추가 bag_pending -> bag_ready 관련 밸리데이션" #33

Feat: "추가 bag_pending -> bag_ready 관련 밸리데이션"

Feat: "추가 bag_pending -> bag_ready 관련 밸리데이션" #33

Workflow file for this run

name: Deploy Development Server
on:
push:
branches: [ "develop" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
## gradle build
- name: Build with Gradle
run: ./gradlew bootJar
## 웹 이미지 빌드 및 도커허브에 push
- name: web docker build and push
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -t ${{ secrets.DOCKER_REPO }}/repick-web-develop .
docker push ${{ secrets.DOCKER_REPO }}/repick-web-develop
docker build -f dockerfile-nginx -t ${{ secrets.DOCKER_REPO }}/repick-nginx-develop .
docker push ${{ secrets.DOCKER_REPO }}/repick-nginx-develop
## docker compose up
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_DEVELOP }}
username: ubuntu
key: ${{ secrets.KEY_DEVELOP }}
script: |
cd /home/ubuntu/repick
sudo touch .env
echo "${{ secrets.ENV_DEV_VARS }}" | sudo tee .env > /dev/null
sudo touch docker-compose.yaml
echo "${{ vars.DOCKER_COMPOSE_DEV }}" | sudo tee docker-compose.yaml > /dev/null
sudo chmod 666 /var/run/docker.sock
sudo docker rm -f $(docker ps -qa)
sudo docker pull ${{ secrets.DOCKER_REPO }}/repick-web-develop
sudo docker pull ${{ secrets.DOCKER_REPO }}/repick-nginx-develop
docker-compose -f docker-compose.yaml --env-file ./.env up -d
docker image prune -f