Skip to content

refactor : 기존 스크립트 임시 주석 (#132) #3

refactor : 기존 스크립트 임시 주석 (#132)

refactor : 기존 스크립트 임시 주석 (#132) #3

Workflow file for this run

# name: CI-CD dev
# on:
# push:
# branches:
# - dev
# jobs:
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [16.16.0]
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node-version }}
# - name: Set environment variables for staging
# if: github.ref == 'refs/heads/dev'
# run: echo "${{ secrets.STAGING_ENV }}" > .env
# - name: docker build and push
# run: |
# docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
# docker build -t ${{ secrets.DOCKER_REPO }}/clubber-front-dev .
# docker push ${{ secrets.DOCKER_REPO }}/clubber-front-dev
# - name: executing remote ssh commands using password
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.SSH_HOST }}
# username: ${{ secrets.SSH_USERNAME }}
# key: ${{ secrets.SSH_KEY }}
# port: ${{ secrets.SSH_PORT }}
# script: |
# sudo docker rm -f $(docker ps -qa)
# sudo docker pull ${{ secrets.DOCKER_REPO }}/clubber-front-dev
# docker-compose up -d
# docker image prune -f