Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: CICD test
Browse files Browse the repository at this point in the history
SeongHyeon0409 committed Nov 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 91cc438 commit a8c735c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ on:
branches:
- dev-be
- dev-fe
- feature-be-#11-test
pull_request:
branches:
- main
@@ -29,19 +30,22 @@ jobs:
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/corinee-client -f ./dockerfile-client .
docker push ${{ secrets.DOCKERHUB_USERNAME }}/corinee-client
- name: make deploy environment
run: |
echo {{secrets.DEPLOY_ENV}} > .env
- name: Send files & deploy script
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
source: ${{ secrets.DOCKER_IMAGE }}
source: ${{ secrets.DEPLOY_FILES }}
target: /corinee
overwrite: true

- name: Docker run
- name: Docker Container run
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
@@ -54,6 +58,7 @@ jobs:
cd /corinee
docker-compose down
docker-compose up -d
rm -rf .env docker-compose.yml
- name: Generate Error Report

0 comments on commit a8c735c

Please sign in to comment.